]> git.lyx.org Git - features.git/commitdiff
Small tweak to r20121
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 7 Sep 2007 10:04:10 +0000 (10:04 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 7 Sep 2007 10:04:10 +0000 (10:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20122 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text2.cpp

index d3025d1845a757a635f28624f01f4655e002e50f..4b04512a102e4c5b9c48c5f3beeb35cc1f6480b8 100644 (file)
@@ -817,7 +817,7 @@ bool Text::deleteEmptyParagraphMechanism(Cursor & cur,
                plist.erase(boost::next(plist.begin(), old.pit()));
                // do not lose start of appendix marker (bug 4212)
                if (soa)
-                       boost::next(plist.begin(), old.pit())->params().startOfAppendix(true);
+                       plist[old.pit()].params().startOfAppendix(true);
 
                // see #warning (FIXME?) above 
                if (cur.depth() >= old.depth()) {