sw/source/core/crsr/pam.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 53c69d392b1e55267a44994a889688cc80fbbd98 Author: Michael Stahl <michael.st...@cib.de> AuthorDate: Wed Nov 18 10:42:45 2020 +0100 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Wed Nov 18 17:00:46 2020 +0100 sw_redlinehide: use correct node in SwPaM::InvalidatePaM() (oopsie from 93b1adf7442839dcfbf16660b1fbe1139f14a4d0) Change-Id: Id48ee8686aa9a6268838fe572ccc321482314442 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106046 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx index b44a2cb2a73f..55775a358826 100644 --- a/sw/source/core/crsr/pam.cxx +++ b/sw/source/core/crsr/pam.cxx @@ -1121,7 +1121,7 @@ OUString SwPaM::GetText() const void SwPaM::InvalidatePaM() { - for (SwNodeIndex index = Start()->nNode; index != End()->nNode; ++index) + for (SwNodeIndex index = Start()->nNode; index <= End()->nNode; ++index) { if (SwTextNode *const pTextNode = index.GetNode().GetTextNode()) { @@ -1133,9 +1133,9 @@ void SwPaM::InvalidatePaM() nStart, index == End()->nNode ? End()->nContent.GetIndex() - nStart - : End()->nNode.GetNode().GetTextNode()->Len() - nStart, + : pTextNode->Len() - nStart, 0); - pTextNode->TriggerNodeUpdate(sw::LegacyModifyHint(nullptr, &aHint)); + pTextNode->TriggerNodeUpdate(sw::LegacyModifyHint(&aHint, &aHint)); } // other node types not invalidated } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits