dekels small deleteemptyparagraphmechanism patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@651 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2000-04-12 14:58:27 +00:00
parent c93e59102c
commit d44343083f
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2000-04-12 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/text2.C (DeleteEmptyParagraphMechanism): small patch posted
to the list by Dekel.
* src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with
strstream too.

View File

@ -3483,13 +3483,13 @@ void LyXText::DeleteEmptyParagraphMechanism(LyXCursor const & old_cursor) const
&& old_cursor.par->IsLineSeparator(old_cursor.pos)
&& old_cursor.par->IsLineSeparator(old_cursor.pos - 1)) {
old_cursor.par->Erase(old_cursor.pos - 1);
status = LyXText::NEED_MORE_REFRESH;
RedoParagraphs(old_cursor, old_cursor.par->Next());
// correct cursor
if (old_cursor.par == cursor.par &&
cursor.pos > old_cursor.pos) {
SetCursorIntern(cursor.par, cursor.pos - 1);
}
} else
SetCursorIntern(cursor.par, cursor.pos);
return;
}
}