remove a warning

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8312 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2004-01-07 10:04:03 +00:00
parent 6c2ebc8c1a
commit bb5291a013
2 changed files with 4 additions and 5 deletions

View 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>

View 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);