X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText2.cpp;h=f1decc56f4f99b720e49043eaca7a2e25ab0b904;hb=71a57e0f4df9d2b860ec2d060cc30043206c335d;hp=b917dba2122d2c02f9d1b32129f45fc08daffb64;hpb=386a347484669d9b498699c7cc42be400ad8ba81;p=lyx.git diff --git a/src/Text2.cpp b/src/Text2.cpp index b917dba212..f1decc56f4 100644 --- a/src/Text2.cpp +++ b/src/Text2.cpp @@ -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(); }