From: Jürgen Spitzmüller Date: Thu, 16 Mar 2006 17:17:30 +0000 (+0000) Subject: fix stripLeadingSpaces mechanism with change tracking enabled X-Git-Tag: 1.6.10~13491 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d69e34402a175c43715ac3639d540f515d125770;p=lyx.git fix stripLeadingSpaces mechanism with change tracking enabled git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13408 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/paragraph.C b/src/paragraph.C index 6060876d9f..4bfe0db3fe 100644 --- a/src/paragraph.C +++ b/src/paragraph.C @@ -563,7 +563,8 @@ int Paragraph::stripLeadingSpaces() return 0; int i = 0; - while (!empty() && (isNewline(0) || isLineSeparator(0))) { + while (!empty() && (isNewline(0) || isLineSeparator(0)) + && (lookupChange(0) != Change::DELETED)) { erase(0); ++i; }