diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 32a0d81bf0..efefb04fa0 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -908,7 +908,15 @@ bool InsetMathHull::notifyCursorLeaves(Cursor const & old, Cursor & cur) { if (RenderPreview::previewMath()) { reloadPreview(old); - cur.screenUpdateFlags(Update::SinglePar); + /** FIXME: currently, SinglePar operates on the current + * paragraph at processUpdateFlags time (here cur) and not the + * paragraph where the change happened (old). When this is + * fixed, the following test will become useless. + */ + if (&old.innerParagraph() == &cur.innerParagraph()) + cur.screenUpdateFlags(Update::SinglePar); + else + cur.screenUpdateFlags(Update::Force); } return false; }