* text2.C:

* paragraph.C: change tracking cosmetics


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15510 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2006-10-23 16:03:14 +00:00
parent 5c26b24d17
commit 504fa6f918
2 changed files with 2 additions and 2 deletions

View File

@ -568,7 +568,7 @@ int Paragraph::stripLeadingSpaces()
int i = 0;
while (!empty() && (isNewline(0) || isLineSeparator(0))
&& (lookupChange(0).type != Change::DELETED)) {
&& !isDeleted(0)) {
eraseChar(0, false); // no change tracking here
++i;
}

View File

@ -1261,7 +1261,7 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor & old)
&& old.pos() < oldpar.size()
&& oldpar.isLineSeparator(old.pos())
&& oldpar.isLineSeparator(old.pos() - 1)
&& oldpar.lookupChange(old.pos() - 1).type != Change::DELETED) {
&& !oldpar.isDeleted(old.pos() - 1)) {
oldpar.eraseChar(old.pos() - 1, false); // do not track changes in DEPM
#ifdef WITH_WARNINGS
#warning This will not work anymore when we have multiple views of the same buffer