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

New commits:
commit 648f06e583cf2cd878580c587afb5813c3db4e33
Author:     Justin Luth <jl...@mail.com>
AuthorDate: Mon Sep 19 12:26:22 2022 -0400
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Mon Sep 19 21:22:39 2022 +0200

    crashtesting: "unknown cell text: element" assert for text:bookmark #2
    
    since...
    
    commit 690a35680adad07c4ab79d82cd1531bb82fe4bc1
    Date:   Sat Sep 10 16:32:46 2022 -0400
    
        tdf#103829 ods import: parse <text:tab/>
    
    From documentation, it looks like we can also have
    bookmark-start and bookmark-end, so adding these
    even though no examples found.
    
    I looked for how to insert bookmarks in calc - basically
    no UI or menu (except one notebookbar, no calc documentation,
    no abandoned bookmark code removal, no bookmark import code.
    
    IIUC, in writer a bookmark is basically a field.
    Perhaps it is similar in Calc? In any case, with this
    limited wealth of information, I don't plan on trying
    to fix the LO 4.1 loss of bookmark.
    
    Change-Id: I44708a5c7d69ce37f688ec7beb243e08844dbfa8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140197
    Tested-by: Justin Luth <jl...@mail.com>
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/sc/source/filter/xml/celltextparacontext.cxx 
b/sc/source/filter/xml/celltextparacontext.cxx
index 88316798ee5f..5274a36f0599 100644
--- a/sc/source/filter/xml/celltextparacontext.cxx
+++ b/sc/source/filter/xml/celltextparacontext.cxx
@@ -70,6 +70,8 @@ uno::Reference< xml::sax::XFastContextHandler > SAL_CALL 
ScXMLCellTextParaContex
             maContent += "\x0a";
             break;
         case XML_ELEMENT(TEXT, XML_BOOKMARK):
+        case XML_ELEMENT(TEXT, XML_BOOKMARK_START):
+        case XML_ELEMENT(TEXT, XML_BOOKMARK_END):
             // TODO: ooo95423-1 [file.ods] and tdf#116079-3 have these 
bookmarks.
             // Is this valid, and how can we prevent losing these?
             break;

Reply via email to