summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-11-10 19:06:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-11-10 19:07:03 +0100
commitac0926092831f6968b703c5e999b105ccb0bb4b0 (patch)
treefbf1b6f0c86ab01c5f4e01ff0f7ed39ebb1532f8
parent45c6cb5f083934f311561599d34ce771bbabf835 (diff)
Update nEndInvalid if it was COMPLETE_STRING
Change-Id: I850c9083230f44daa722e7f51dbfa73efd088d25
-rw-r--r--sw/source/core/text/wrong.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/wrong.cxx b/sw/source/core/text/wrong.cxx
index c82d05fac17f..a9d500fb1c6a 100644
--- a/sw/source/core/text/wrong.cxx
+++ b/sw/source/core/text/wrong.cxx
@@ -249,7 +249,7 @@ void SwWrongList::_Invalidate( sal_Int32 nBegin, sal_Int32 nEnd )
{
if ( nBegin < GetBeginInv() )
nBeginInvalid = nBegin;
- if ( nEnd > GetEndInv() )
+ if ( nEnd > GetEndInv() || GetEndInv() == COMPLETE_STRING )
nEndInvalid = nEnd;
}