diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/oox/richstring.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/oox/richstring.cxx b/sc/source/filter/oox/richstring.cxx index c9d9747b480d..fb6b46932f3f 100644 --- a/sc/source/filter/oox/richstring.cxx +++ b/sc/source/filter/oox/richstring.cxx @@ -121,16 +121,16 @@ void RichStringPortion::convert( ScEditEngineDefaulter& rEE, ESelection& rSelect // #TODO need to manually adjust nEndPos ( and nEndPara ) to cater for any paragraphs sal_Int32 nLastParaLoc = -1; sal_Int32 nSearchIndex = maText.indexOf( '\n' ); - sal_Int32 nParaOccurence = 0; + sal_Int32 nParaOccurrence = 0; while ( nSearchIndex != -1 ) { nLastParaLoc = nSearchIndex; - ++nParaOccurence; + ++nParaOccurrence; rSelection.nEndPos = 0; nSearchIndex = maText.indexOf( '\n', nSearchIndex + 1); } - rSelection.nEndPara += nParaOccurence; + rSelection.nEndPara += nParaOccurrence; if ( nLastParaLoc != -1 ) { rSelection.nEndPos = maText.getLength() - 1 - nLastParaLoc; |