sc/source/core/data/documen8.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 951dd781743c975a7d29cc30e88e1b4a56c0b176
Author: Eike Rathke <er...@redhat.com>
Date:   Mon Feb 5 23:13:08 2018 +0100

    Turn assert into SAL_WARN
    
    In the wild there are named expressions without expression and
    formula error cells without formula.
    
    Change-Id: I11546b09173de65cebe776529edee74c549d73c8

diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index eb58eb080213..48b9c443990f 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -1195,7 +1195,10 @@ void ScDocument::CheckLinkFormulaNeedingCheck( const 
ScTokenArray& rCode )
     }
     else
     {
-        assert(!"called with empty ScTokenArray");
+        // Possible with named expression without expression like Excel
+        // internal print ranges, obscure user define names, ... formula error
+        // cells without formula ...
+        SAL_WARN("sc.core","ScDocument::CheckLinkFormulaNeedingCheck - called 
with empty ScTokenArray");
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to