diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-06 12:15:18 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-15 15:10:05 +0100 |
commit | f6922001a6d06e6c9ced6a2f115406a3c2b3752f (patch) | |
tree | 204608c35cb3b2f69217081820f2ba4285ff5700 /sw/source | |
parent | 8fd57fff544bc79a96ef54054d22dc3469daf1fb (diff) |
sw_redlinehide_3: adapt SwCursorShell::UpdateMarkedListLevel()
Change-Id: I2cd143baafae09324ad0a439cfad3f916ddb13b3
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/crsr/crsrsh.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/edit/editsh.cxx | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx index cc5c17b40148..8f0c822798c3 100644 --- a/sw/source/core/crsr/crsrsh.cxx +++ b/sw/source/core/crsr/crsrsh.cxx @@ -388,7 +388,8 @@ void SwCursorShell::MarkListLevel( const OUString& sListId, void SwCursorShell::UpdateMarkedListLevel() { - SwTextNode * pTextNd = GetCursor_()->GetNode().GetTextNode(); + SwTextNode const*const pTextNd = sw::GetParaPropsNode(*GetLayout(), + GetCursor_()->GetPoint()->nNode); if ( pTextNd ) { diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx index fcc0377ad54d..f548e2baf064 100644 --- a/sw/source/core/edit/editsh.cxx +++ b/sw/source/core/edit/editsh.cxx @@ -780,6 +780,7 @@ void SwEditShell::SetNumberingRestart() SwTextNode* pTextNd( pNd->GetTextNode() ); SwNumRule* pNumRule( pTextNd->GetNumRule() ); + // sw_redlinehide: not sure what this should do, only called from mail-merge bool bIsNodeNum = ( pNumRule && pTextNd->GetNum() && ( pTextNd->HasNumber() || pTextNd->HasBullet() ) && |