From bb5291a013808efe139661f5490fd54ba4db45a1 Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Wed, 7 Jan 2004 10:04:03 +0000 Subject: [PATCH] remove a warning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8312 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 3 +++ src/text.C | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index dda43c6bb8..e720b6e67f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2004-01-07 Alfredo Braunstein + + * text.C (breakParagraph): remove an outdated #warning 2004-01-07 Alfredo Braunstein diff --git a/src/text.C b/src/text.C index 4f20575b5a..398df84480 100644 --- a/src/text.C +++ b/src/text.C @@ -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); -- 2.39.5