]> git.lyx.org Git - lyx.git/commitdiff
fix stripLeadingSpaces mechanism with change tracking enabled
authorJürgen Spitzmüller <spitz@lyx.org>
Thu, 16 Mar 2006 17:17:30 +0000 (17:17 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Thu, 16 Mar 2006 17:17:30 +0000 (17:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13408 a592a061-630c-0410-9148-cb99ea01b6c8

src/paragraph.C

index 6060876d9fc62aa759cd58de7104515d26db8933..4bfe0db3fe55894c10394b46d69e98e82a5e8efb 100644 (file)
@@ -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;
        }