Fix crash when breaking paragraph and Change tracking is involved.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16796 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-01-21 16:43:27 +00:00
parent 7208919883
commit 02ec2834f1

View File

@ -1233,8 +1233,12 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur,
return true;
}
if (oldpar.stripLeadingSpaces(cur.buffer().params().trackChanges))
if (oldpar.stripLeadingSpaces(cur.buffer().params().trackChanges)) {
need_anchor_change = true;
// We return true here because the Paragraph contents changed and
// we need a redraw before further action is processed.
return true;
}
return false;
}