mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
Fix 3992: Screen update problem in change tracking mode
http://bugzilla.lyx.org/show_bug.cgi?id=3992 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19010 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0c80805287
commit
e567f1aff2
@ -1141,9 +1141,17 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
// "auto_region_delete", which defaults to
|
||||
// true (on).
|
||||
|
||||
if (lyxrc.auto_region_delete)
|
||||
if (cur.selection())
|
||||
cutSelection(cur, false, false);
|
||||
if (lyxrc.auto_region_delete && cur.selection()) {
|
||||
cutSelection(cur, false, false);
|
||||
// When change tracking is set to off, the metrics update
|
||||
// mechanism correctly detects if a full update is needed or not.
|
||||
// This detection fails when a selection spans multiple rows and
|
||||
// change tracking is enabled because the paragraph metrics stays
|
||||
// the same. In this case, we force the full update:
|
||||
// (see http://bugzilla.lyx.org/show_bug.cgi?id=3992)
|
||||
if (cur.buffer().params().trackChanges)
|
||||
cur.updateFlags(Update::Force);
|
||||
}
|
||||
|
||||
cur.clearSelection();
|
||||
Font const old_font = real_current_font;
|
||||
|
Loading…
x
Reference in New Issue
Block a user