sw/source/uibase/shells/translatehelper.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 44fed6aec98320bf7ec793f08447bb8d455abc4f Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Oct 11 18:01:19 2023 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Thu Oct 12 07:40:45 2023 +0200 Do not compare SwContentIndex instances from different nodes It fires an assert in dbgutil builds; and it doesn't make sense anyway: we must use the index from the beginning, not a strange minimal value between indices in start node and end node. Change-Id: I4a2b6062f5524703737ca6029f428f30555d25b4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157842 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sw/source/uibase/shells/translatehelper.cxx b/sw/source/uibase/shells/translatehelper.cxx index c62e4a59749c..64cd27e1fe1d 100644 --- a/sw/source/uibase/shells/translatehelper.cxx +++ b/sw/source/uibase/shells/translatehelper.cxx @@ -178,7 +178,7 @@ void TranslateDocumentCancellable(SwWrtShell& rWrtSh, const TranslateAPIConfig& else if (n == startNode) { cursor->SetMark(); - cursor->GetPoint()->nContent = std::min(aPoint.nContent, aMark.nContent); + cursor->GetPoint()->nContent = aPoint.nContent; } else if (n == endNode) {