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

New commits:
commit b2b491a5c63081d6a62df07c7430b604ba06d922
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
    (cherry picked from commit 951dd781743c975a7d29cc30e88e1b4a56c0b176)
    Reviewed-on: https://gerrit.libreoffice.org/49259
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index ca8227058d5a..b7ccee14d2b7 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -1170,7 +1170,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