diff --git a/src/paragraph.C b/src/paragraph.C index 84ab0f9ffe..5730477e4a 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -568,7 +568,7 @@ int Paragraph::stripLeadingSpaces() int i = 0; while (!empty() && (isNewline(0) || isLineSeparator(0)) - && (lookupChange(0).type != Change::DELETED)) { + && !isDeleted(0)) { eraseChar(0, false); // no change tracking here ++i; } diff --git a/src/text2.C b/src/text2.C index cfb1a824b9..96023861b0 100644 --- a/src/text2.C +++ b/src/text2.C @@ -1261,7 +1261,7 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor & old) && old.pos() < oldpar.size() && oldpar.isLineSeparator(old.pos()) && oldpar.isLineSeparator(old.pos() - 1) - && oldpar.lookupChange(old.pos() - 1).type != Change::DELETED) { + && !oldpar.isDeleted(old.pos() - 1)) { oldpar.eraseChar(old.pos() - 1, false); // do not track changes in DEPM #ifdef WITH_WARNINGS #warning This will not work anymore when we have multiple views of the same buffer