diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2019-12-17 17:21:29 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-12-17 20:10:06 +0100 |
commit | 0d32f2a7dfa7c619d07e8a2680f19564a7032d44 (patch) | |
tree | 29c576dd2c4ff38a19e7baf8433b4bb9d199e5c2 | |
parent | 037cd13af81f8a1169d01e95036ed942f261f9a6 (diff) |
Fix typo in code
Change-Id: I32f99d6dbdaa52f53bd630b611d13decf110fd75
Reviewed-on: https://gerrit.libreoffice.org/85318
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
-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; |