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

Eike Rathke erack at redhat.com
Wed Jun 15 20:04:32 UTC 2016


 sc/source/core/tool/interpr4.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit df149997849c1e07d735fdeefccf875e7361aa4c
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Jun 15 21:57:23 2016 +0200

    do not override nGlobalError with error from ConvertStringToValue()
    
    ... so an already existing previous error is kept.
    
    Change-Id: Ie731f17e93afa512542cc3ba2378031e978f9462

diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index c773f7b..f7c75a6 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -187,10 +187,11 @@ sal_uInt16 ScInterpreter::GetCellErrCode( const ScRefCellValue& rCell )
 
 double ScInterpreter::ConvertStringToValue( const OUString& rStr )
 {
-    double fValue = ScGlobal::ConvertStringToValue( rStr, maCalcConfig, nGlobalError, mnStringNoValueError,
+    sal_uInt16 nError = 0;
+    double fValue = ScGlobal::ConvertStringToValue( rStr, maCalcConfig, nError, mnStringNoValueError,
             pFormatter, nCurFmtType);
-    if (nGlobalError)
-        SetError(nGlobalError);
+    if (nError)
+        SetError(nError);
     return fValue;
 }
 


More information about the Libreoffice-commits mailing list