mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Do a round of DEPM after changing layout
This commit is contained in:
parent
386a347484
commit
26ad2c6a67
@ -186,6 +186,8 @@ void Text::setLayout(pit_type start, pit_type end,
|
||||
if (lyxlayout.margintype == MARGIN_MANUAL)
|
||||
par.setLabelWidthString(par.expandLabel(lyxlayout, bp));
|
||||
}
|
||||
|
||||
deleteEmptyParagraphMechanism(start, end - 1, bp.track_changes);
|
||||
}
|
||||
|
||||
|
||||
@ -198,6 +200,7 @@ void Text::setLayout(Cursor & cur, docstring const & layout)
|
||||
pit_type end = cur.selEnd().pit() + 1;
|
||||
cur.recordUndoSelection();
|
||||
setLayout(start, end, layout);
|
||||
cur.fixIfBroken();
|
||||
cur.setCurrentFont();
|
||||
cur.forceBufferUpdate();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user