diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-30 09:10:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-30 13:37:04 +0200 |
commit | 1f9fc5da3c38d3e73f1427f040d29a27bacfbe44 (patch) | |
tree | 1724db0033c071822075a3a9605039113c32982d /sw/source/core/edit/edattr.cxx | |
parent | 113d9bba057b2fd634fcfcebb83a4d92cf41d69f (diff) |
use more SwPosition::SetContent
as part of the process of hiding the internals of SwPosition
Change-Id: Idc7bc4cd22f13cf7bfb7982d445d13970a9e70a8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140792
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/edit/edattr.cxx')
-rw-r--r-- | sw/source/core/edit/edattr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx index 5da7b9dffb59..8ff0026d03c3 100644 --- a/sw/source/core/edit/edattr.cxx +++ b/sw/source/core/edit/edattr.cxx @@ -682,7 +682,7 @@ SvtScriptType SwEditShell::GetScriptType() const // position, if no selection exist! if( nPos ) { - SwContentIndex aIdx( pStt->nContent ); + SwContentIndex aIdx( pStt->GetContentNode(), pStt->GetContentIndex() ); if( pTNd->GoPrevious( &aIdx, SwCursorSkipMode::Chars ) ) nPos = aIdx.GetIndex(); } |