From 61e749ba2a71e68a400f38b9f7dcb92f7d1a784c Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 14 Apr 2026 14:29:56 +0500 Subject: [PATCH] Fix ThreadedCommentsFragment::onCharacters to handle multiple calls ... per characters content, as is usual for SAX parsing. Thanks Miklos for spotting this in https://gerrit.collaboraoffice.com/c/core/+/801/comment/9e3a60ba_b69d538f/ Change-Id: Iabfb44dcd56364b708f0c933c7cd32a9a11ebaf4 Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/911 Reviewed-by: Miklos Vajna Tested-by: Jenkins CPCI (cherry picked from commit 4c475432ca1c001d1d041b47595f6ec7c58e87fa) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205633 Reviewed-by: Xisco Fauli Tested-by: Jenkins --- sc/source/filter/oox/threadedcommentsfragment.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/filter/oox/threadedcommentsfragment.cxx b/sc/source/filter/oox/threadedcommentsfragment.cxx index 2a72360eb10a..97a55de95105 100644 --- a/sc/source/filter/oox/threadedcommentsfragment.cxx +++ b/sc/source/filter/oox/threadedcommentsfragment.cxx @@ -62,7 +62,7 @@ core::ContextHandlerRef ThreadedCommentsFragment::onCreateContext(sal_Int32 nEle void ThreadedCommentsFragment::onCharacters(const OUString& rChars) { if (isCurrentElement(XTHREADED_TOKEN(text)) && mpCurrentEntry) - mpCurrentEntry->maText = rChars; + mpCurrentEntry->maText += rChars; } void ThreadedCommentsFragment::onEndElement()