[Libreoffice-commits] core.git: sw/source
Michael Stahl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jan 23 09:37:28 UTC 2020
sw/source/core/text/porlay.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 53cd5d1f50d3da4efe0938aa340f6a57a0b8501d
Author: Michael Stahl <Michael.Stahl at cib.de>
AuthorDate: Wed Jan 22 12:19:54 2020 +0100
Commit: Michael Stahl <michael.stahl at cib.de>
CommitDate: Thu Jan 23 10:36:55 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.stahl at cib.de>
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
More information about the Libreoffice-commits
mailing list