]> git.lyx.org Git - lyx.git/commitdiff
remove a warning
authorAlfredo Braunstein <abraunst@lyx.org>
Wed, 7 Jan 2004 10:04:03 +0000 (10:04 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Wed, 7 Jan 2004 10:04:03 +0000 (10:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8312 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text.C

index dda43c6bb805e1a2c9d27713930cc45cf752cf21..e720b6e67fa42d57fdbfd55e3dd4805ca327a51f 100644 (file)
@@ -1,3 +1,6 @@
+2004-01-07  Alfredo Braunstein  <abraunst@lyx.org>
+
+       * text.C (breakParagraph): remove an outdated #warning
 
 2004-01-07  Alfredo Braunstein  <abraunst@lyx.org>
 
index 4f20575b5ae9025d16974dd453c41258a88adef1..398df844801a7488062fd726ebe19166f352c4cc 100644 (file)
@@ -772,7 +772,7 @@ void LyXText::breakParagraph(ParagraphList & paragraphs, char keep_layout)
        //
        // It is better to erase the space (Dekel)
        if (cursor.pos() < cpit->size() && cpit->isLineSeparator(cursor.pos()))
-          cpit->erase(cursor.pos());
+               cpit->erase(cursor.pos());
 
        // break the paragraph
        if (keep_layout)
@@ -788,10 +788,6 @@ void LyXText::breakParagraph(ParagraphList & paragraphs, char keep_layout)
        ::breakParagraph(bv()->buffer()->params(), paragraphs, cpit,
                         cursor.pos(), keep_layout);
 
-#warning Trouble Point! (Lgb)
-       // When ::breakParagraph is called from within an inset we must
-       // ensure that the correct ParagraphList is used. Today that is not
-       // the case and the Buffer::paragraphs is used. Not good. (Lgb)
        cpit = cursorPar();
        ParagraphList::iterator next_par = boost::next(cpit);