]> git.lyx.org Git - features.git/commitdiff
* src/Text2.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Wed, 29 Aug 2007 13:04:29 +0000 (13:04 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Wed, 29 Aug 2007 13:04:29 +0000 (13:04 +0000)
- fix wrong DEPM in ct mode (bug 3961).

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

src/Text2.cpp

index 4bbd0fda1c79da0ccaabf77a4e5689393734f058..938fd3372a9963707abc210bad9a491c6a81f543 100644 (file)
@@ -1148,7 +1148,8 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
                    && old.pos() < oldpar.size()
                    && oldpar.isLineSeparator(old.pos())
                    && oldpar.isLineSeparator(old.pos() - 1)
-                   && !oldpar.isDeleted(old.pos() - 1)) {
+                   && !oldpar.isDeleted(old.pos() - 1)
+                   && !oldpar.isDeleted(old.pos())) {
                        oldpar.eraseChar(old.pos() - 1, cur.buffer().params().trackChanges);
 // FIXME: This will not work anymore when we have multiple views of the same buffer
 // In this case, we will have to correct also the cursors held by