X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fparagraph.C;h=4bfe0db3fe55894c10394b46d69e98e82a5e8efb;hb=6c2e78e12855d8661eb289ded3dc8722748863b8;hp=6060876d9fc62aa759cd58de7104515d26db8933;hpb=f42db3f4b29b34fdd317f0bcddc15a843561ce0f;p=lyx.git 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; }