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

Eike Rathke erack at redhat.com
Wed Oct 12 19:16:29 UTC 2016


 sc/source/core/tool/compiler.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 16fd5a6e7dbf7dabc1d8c53cd3aa6c1a50ff7892
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Oct 12 21:11:44 2016 +0200

    propagate original named expression error, if any
    
    ... instead of substituting with NoName error.
    
    Change-Id: Id80f46f0f4c17a0fd06abdf821d1cf5ca5d7a3ec

diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 834c7ab..fa117a0 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -4665,7 +4665,7 @@ bool ScCompiler::HandleRange()
     {
         FormulaError nErr = pRangeData->GetErrCode();
         if( nErr != FormulaError::NONE )
-            SetError( FormulaError::NoName );
+            SetError( nErr );
         else if (mbJumpCommandReorder)
         {
             // put named formula into parentheses.


More information about the Libreoffice-commits mailing list