sw/source/core/text/porlay.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 099d3e79bb12ba1e77b42625a6b88241e5560e75 Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Wed Jan 22 12:19:54 2020 +0100 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Thu Jan 23 17:14:29 2020 +0100
sw_redlinehide: fix SwScriptInfo hidden text A missing update of nOffset in SwScriptInfo::InitScriptInfo(); it must be updated for every extent but it's not for the last one in a node. test case: ab cd Delete "bc", hide "d", but "a" disappears. (regression from 0e26d48ad7f18deac8447a306215f79d5c62be27) Change-Id: I99fb88409e184a61866f908722b4430a53914153 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87201 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> (cherry picked from commit 53cd5d1f50d3da4efe0938aa340f6a57a0b8501d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87246 Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de> (cherry picked from commit b11ef7de2420a1f35290802145067cbbd2da5d93) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87279 Tested-by: Michael Stahl <michael.st...@cib.de> diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx index b33d3eb97984..d7dc2f10838d 100644 --- a/sw/source/core/text/porlay.cxx +++ b/sw/source/core/text/porlay.cxx @@ -777,6 +777,7 @@ void SwScriptInfo::InitScriptInfo(const SwTextNode& rNode, } } } + nOffset += TextFrameIndex(iter->nEnd - iter->nStart); } } else _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits