Commit bc249bae authored by Alexander Semke's avatar Alexander Semke

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)
if (key_event->matches(QKeySequence::Cancel))
{
setRenderedHtml(html);
for (auto iter = foundMath.begin(); iter != foundMath.end(); iter++)
iter->second = false;
rendered = true;
markUpMath();
if (worksheet()->embeddedMathEnabled())
renderMath();
return true;
}
}
......
Markdown is supported
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