sc/source/filter/xml/celltextparacontext.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit e66606a3334a575a183e57360c7a4696b73393c8
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Sat Sep 17 21:08:22 2022 -0400
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sun Sep 18 16:07:30 2022 +0200

    crashtesting: "unknown cell text: element" assert for text:bookmark
    
    since...
    
    commit 690a35680adad07c4ab79d82cd1531bb82fe4bc1
    Date:   Sat Sep 10 16:32:46 2022 -0400
    
        tdf#103829 ods import: parse <text:tab/>
    
    Change-Id: Ia157c3503b119f2fa8daf31870894344e0313204
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140112
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sc/source/filter/xml/celltextparacontext.cxx 
b/sc/source/filter/xml/celltextparacontext.cxx
index c82a048bb717..88316798ee5f 100644
--- a/sc/source/filter/xml/celltextparacontext.cxx
+++ b/sc/source/filter/xml/celltextparacontext.cxx
@@ -69,7 +69,12 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL 
ScXMLCellTextParaContex
         case XML_ELEMENT(TEXT, XML_LINE_BREAK):
             maContent += "\x0a";
             break;
+        case XML_ELEMENT(TEXT, XML_BOOKMARK):
+            // TODO: ooo95423-1 [file.ods] and tdf#116079-3 have these 
bookmarks.
+            // Is this valid, and how can we prevent losing these?
+            break;
         default:
+            SAL_WARN("sc","unknown text 
element["<<nElement<<"]["<<SvXMLImport::getNameFromToken(nElement )<<"] lost");
             assert(false && "unknown cell text: element");
             ;
     }

Reply via email to