summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-01-22 12:19:54 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-01-23 17:14:29 +0100
commit099d3e79bb12ba1e77b42625a6b88241e5560e75 (patch)
tree478e257ca623eef9f66afb504f24758abc42e6ed
parenta08be41267e9812fce69f4a49bb14af11305e59f (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> (cherry picked from commit 53cd5d1f50d3da4efe0938aa340f6a57a0b8501d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87246 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit b11ef7de2420a1f35290802145067cbbd2da5d93) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87279 Tested-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--sw/source/core/text/porlay.cxx1
1 files changed, 1 insertions, 0 deletions
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