[Libreoffice-commits] core.git: sc/source

Andrea Gelmini (via logerrit) logerrit at kemper.freedesktop.org
Tue Dec 17 19:11:24 UTC 2019


 sc/source/filter/oox/richstring.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 0d32f2a7dfa7c619d07e8a2680f19564a7032d44
Author:     Andrea Gelmini <andrea.gelmini at gelma.net>
AuthorDate: Tue Dec 17 17:21:29 2019 +0100
Commit:     Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Dec 17 20:10:06 2019 +0100

    Fix typo in code
    
    Change-Id: I32f99d6dbdaa52f53bd630b611d13decf110fd75
    Reviewed-on: https://gerrit.libreoffice.org/85318
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Tested-by: Jenkins

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;


More information about the Libreoffice-commits mailing list