fix stripLeadingSpaces mechanism with change tracking enabled

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13408 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2006-03-16 17:17:30 +00:00
parent 96e7ad18f8
commit d69e34402a

View File

@ -563,7 +563,8 @@ int Paragraph::stripLeadingSpaces()
return 0; return 0;
int i = 0; int i = 0;
while (!empty() && (isNewline(0) || isLineSeparator(0))) { while (!empty() && (isNewline(0) || isLineSeparator(0))
&& (lookupChange(0) != Change::DELETED)) {
erase(0); erase(0);
++i; ++i;
} }