From 0d32f2a7dfa7c619d07e8a2680f19564a7032d44 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Tue, 17 Dec 2019 17:21:29 +0100 Subject: Fix typo in code Change-Id: I32f99d6dbdaa52f53bd630b611d13decf110fd75 Reviewed-on: https://gerrit.libreoffice.org/85318 Reviewed-by: Julien Nabet Tested-by: Jenkins --- sc/source/filter/oox/richstring.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc') 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; -- cgit