diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-10-01 16:49:11 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-02 17:24:38 +0200 |
commit | e4ffcf3225ab4ec38c704f4ba0d1f987e4368af5 (patch) | |
tree | 99dc817b254cb4af8d9494aaf2cab04ecaec9b5c /sw/source/core/doc/doccorr.cxx | |
parent | Resolves: tdf#125110 tdf#151211 Disentangle the convoluted CSV/TSV-clip import (diff) | |
download | core-e4ffcf3225ab4ec38c704f4ba0d1f987e4368af5.tar.gz core-e4ffcf3225ab4ec38c704f4ba0d1f987e4368af5.zip |
crashtesting: assert on ooo8886-16.sxw
seems a regression from:
commit d7234feac18dbb94fef310e8c241428426b27717 (HEAD, refs/bisect/bad)
Date: Thu Aug 25 18:45:33 2022 +0200
use more SwPosition::Assign
Change-Id: I80602b2cc01b28986b04a97fce5c51673e6fe8a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140848
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/doccorr.cxx')
-rw-r--r-- | sw/source/core/doc/doccorr.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx index a98fedb58708..596634bb5e1f 100644 --- a/sw/source/core/doc/doccorr.cxx +++ b/sw/source/core/doc/doccorr.cxx @@ -77,9 +77,8 @@ namespace SwPosition & rPos = pPam->GetBound(bool(nb)); if(&rPos.GetNode() == pOldNode) { - rPos.Assign( rNewPos.GetNode() ); - if(rNewPos.GetNode().GetContentNode()) - rPos.AdjustContent(nCntIdx); + rPos.Assign(rNewPos.GetNode(), SwNodeOffset(0), + nCntIdx + rPos.GetContentIndex()); } } } |