From 4be4fe2af8d945dcd2e319b3ee3d1fcb9fe01bd7 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 4 Apr 2007 16:17:24 +0000 Subject: [PATCH] Fix bug 3408 and 3408: http://bugzilla.lyx.org/show_bug.cgi?id=3408 http://bugzilla.lyx.org/show_bug.cgi?id=3409 The missing redraw was introduced with "Draw only decoration" optimisation in mathed. Setting the flags to Update::Force in case of Preview mode fixes the problem. * InsetMathHull::notifyCursorLeaves(): set the cursor flags to 'Force' git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17718 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/mathed/InsetMathHull.C | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mathed/InsetMathHull.C b/src/mathed/InsetMathHull.C index 2b42deda64..579bafdb81 100644 --- a/src/mathed/InsetMathHull.C +++ b/src/mathed/InsetMathHull.C @@ -416,6 +416,7 @@ bool InsetMathHull::notifyCursorLeaves(LCursor & cur) docstring const snippet = latex_string(*this); preview_->addPreview(snippet, buffer); preview_->startLoading(buffer); + cur.updateFlags(Update::Force); } return false; } -- 2.39.2