summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/txtedt.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-31 15:43:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-09-02 09:02:19 +0200
commitee46457ce572649c0b5f238d2556c0cc5a7a8ead (patch)
tree611e8ee16811f7afdf1b12ed4c375be6832d2d82 /sw/source/core/txtnode/txtedt.cxx
parent91c5e7a924830dbefeaedd4e342f6f2d69e1b1ea (diff)
assert SwContentNodeIndex passed to SwTextNode are actually also on that node
which flushes out a couple of bugs - unfortunately my fixes to those call sites are pretty much guesses Change-Id: I4b3f8a94042eef10c35112f3dc19fe214b472906 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139115 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/txtnode/txtedt.cxx')
-rw-r--r--sw/source/core/txtnode/txtedt.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index 05a830ef6082..c22601e99a8a 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -372,6 +372,7 @@ void SwTextNode::RstTextAttr(
const bool bInclRefToxMark,
const bool bExactRange )
{
+ assert(rIdx.GetContentNode() == this);
if ( !GetpSwpHints() )
return;