sc/source/filter/xml/celltextparacontext.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit f24841da29adb8c0b4a8ec1b29367ee63998d440
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Thu Sep 22 12:47:28 2022 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Thu Sep 22 19:49:36 2022 +0200

    crashtesting: "unknown cell text: element" assert on broken xml
    
    Three invalid files are hitting this assert.
    They had invalid XML, so I couldn't even
    xmllint --format --recover content.xml
    
    Removing the assert - it has outlived its usefulness.
    
    Change-Id: I93d6d6e1d5ce53f9dd1ee46ce3881183993827c4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140447
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/sc/source/filter/xml/celltextparacontext.cxx 
b/sc/source/filter/xml/celltextparacontext.cxx
index 5274a36f0599..b8c204dbe2d4 100644
--- a/sc/source/filter/xml/celltextparacontext.cxx
+++ b/sc/source/filter/xml/celltextparacontext.cxx
@@ -77,8 +77,6 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL 
ScXMLCellTextParaContex
             break;
         default:
             SAL_WARN("sc","unknown text 
element["<<nElement<<"]["<<SvXMLImport::getNameFromToken(nElement )<<"] lost");
-            assert(false && "unknown cell text: element");
-            ;
     }
 
     return nullptr;

Reply via email to