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 <vmiklos@collabora.com> Tested-by: Jenkins CPCI <releng@collaboraoffice.com> (cherry picked from commit 4c475432ca1c001d1d041b47595f6ec7c58e87fa) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205633 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
committed by
Xisco Fauli
parent
23e5efed4e
commit
61e749ba2a
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user