summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-11-06 12:15:18 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-10 19:47:00 +0100
commit8b60ed910e5394920581a1eeef65ed2feafed693 (patch)
tree4669ef73cfd8aa264593c96170bd3a1de039526b
parentb779974fbaff3bb99924c1bddfcf0fc387289ac4 (diff)
sw_redlinehide_3: adapt SwCursorShell::UpdateMarkedListLevel()
Change-Id: I2cd143baafae09324ad0a439cfad3f916ddb13b3
-rw-r--r--sw/source/core/crsr/crsrsh.cxx3
-rw-r--r--sw/source/core/edit/editsh.cxx1
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() ) &&