diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-01-22 12:19:54 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-01-23 10:36:55 +0100 |
commit | 53cd5d1f50d3da4efe0938aa340f6a57a0b8501d (patch) | |
tree | 186c22bb00ab52c3effb2632d33223207e7a474f /sw | |
parent | d4561921dde7d350b3b4d5f793871bea8ba4546d (diff) |
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.stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/text/porlay.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/text/porlay.cxx b/sw/source/core/text/porlay.cxx index b4212904b18c..f0fcbb1a48dd 100644 --- a/sw/source/core/text/porlay.cxx +++ b/sw/source/core/text/porlay.cxx @@ -797,6 +797,7 @@ void SwScriptInfo::InitScriptInfo(const SwTextNode& rNode, } } } + nOffset += TextFrameIndex(iter->nEnd - iter->nStart); } } else |