diff options
author | Jaume Pujantell <jaume.pujantell@collabora.com> | 2023-11-22 11:59:09 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-11-23 08:27:57 +0100 |
commit | 7c4dba1deffd81f647a4a3be7a79f68f3bf9f1ba (patch) | |
tree | 32ea9bbd1ce1170e74220656688fc95577073870 /compilerplugins/clang/trivialconstructor.cxx | |
parent | 85852ad0d96bfd71413aef94edc1b6e2e6052e1a (diff) |
fix a regression crash from commit 5082d50
The commit generated crashes in the crashtest documents
7711 bugtrackers/docx/fdo78333-1.docx and
695 forums/docx/forum-mso-en-4096.docx.
This was due to "m_xFieldStartRange", the start of the text
portion of the block SDT, being recorded too early. This led to
including characters that shouldn't be there in the generated
content control.
This patch moves the calls to setFieldStartRange to just before
the first appendTextPortion call.
Change-Id: I7230346fee9a37ebac70beb9bcafd9d7b612eb00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159816
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'compilerplugins/clang/trivialconstructor.cxx')
0 files changed, 0 insertions, 0 deletions