From d69e34402a175c43715ac3639d540f515d125770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Thu, 16 Mar 2006 17:17:30 +0000 Subject: [PATCH] fix stripLeadingSpaces mechanism with change tracking enabled git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13408 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/paragraph.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }