summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-12-16 22:34:42 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2013-12-16 22:40:03 +0100
commit42aec34a5d83d863e050da85f88b31417c44b698 (patch)
tree2f7233c51d941ad73ac1704cafa6620eff397841
parent42c72859913ff0464ee1dbb2be83ae28860d7d21 (diff)
Fix a previous commit
Thanks to Thomas Arnhold for noticing and reporting Change-Id: Ia23746b3834b3fb3dbbadfdada96d98958b0e00c
-rw-r--r--sw/source/core/text/SwGrammarMarkUp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/SwGrammarMarkUp.cxx b/sw/source/core/text/SwGrammarMarkUp.cxx
index 53c4264207b6..07c727296876 100644
--- a/sw/source/core/text/SwGrammarMarkUp.cxx
+++ b/sw/source/core/text/SwGrammarMarkUp.cxx
@@ -50,7 +50,7 @@ void SwGrammarMarkUp::MoveGrammar( sal_Int32 nPos, sal_Int32 nDiff )
while( pIter != maSentence.end() )
{
if( *pIter >= nEnd )
- *pIter += *pIter;
+ *pIter += nDiff;
else
*pIter = nPos;
++pIter;