]> git.lyx.org Git - lyx.git/blobdiff - src/Text2.cpp
cut down pch.h to more frequently needed headers
[lyx.git] / 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()) {