mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-11 16:31:09 +00:00
Fixup 5e857883
: update screen when clicking away from preview
This is a regression in 5e857883
that comes from the fact that the
Update::singlePar flag does not operate on the paragraph that may be
modified but on the one where the cursor currently lies.
Until this is fixed, we do a full update when this situation is encountered.
Fixes bug #13128.
This commit is contained in:
parent
6bfa5f2e38
commit
e3ec44ffe7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user