]> git.lyx.org Git - features.git/commitdiff
* text2.C:
authorMichael Schmitt <michael.schmitt@teststep.org>
Mon, 23 Oct 2006 16:03:14 +0000 (16:03 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Mon, 23 Oct 2006 16:03:14 +0000 (16:03 +0000)
* paragraph.C: change tracking cosmetics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15510 a592a061-630c-0410-9148-cb99ea01b6c8

src/paragraph.C
src/text2.C

index 84ab0f9ffed2c528e8cf0bc2e4152868c0b216c6..5730477e4a54c77b09a84fec3705230a86494bcc 100644 (file)
@@ -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;
        }
index cfb1a824b92c4e7d6c230e73002e16fc616dcd9f..96023861b0aec75c8615436777bb42faa2612075 100644 (file)
@@ -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