Commit bc249bae authored by Alexander Semke's avatar Alexander Semke
Browse files

Correctly restore the embedded images for mathematical formulas after

Escape was pressed in MarkdownEntry.
parent 0e70a54b
...@@ -474,7 +474,13 @@ bool MarkdownEntry::eventFilter(QObject* object, QEvent* event) ...@@ -474,7 +474,13 @@ bool MarkdownEntry::eventFilter(QObject* object, QEvent* event)
if (key_event->matches(QKeySequence::Cancel)) if (key_event->matches(QKeySequence::Cancel))
{ {
setRenderedHtml(html); setRenderedHtml(html);
for (auto iter = foundMath.begin(); iter != foundMath.end(); iter++)
iter->second = false;
rendered = true; rendered = true;
markUpMath();
if (worksheet()->embeddedMathEnabled())
renderMath();
return true; return true;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment