Kaydet (Commit) f6922001 authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide_3: adapt SwCursorShell::UpdateMarkedListLevel()

Change-Id: I2cd143baafae09324ad0a439cfad3f916ddb13b3
üst 8fd57fff
...@@ -388,7 +388,8 @@ void SwCursorShell::MarkListLevel( const OUString& sListId, ...@@ -388,7 +388,8 @@ void SwCursorShell::MarkListLevel( const OUString& sListId,
void SwCursorShell::UpdateMarkedListLevel() void SwCursorShell::UpdateMarkedListLevel()
{ {
SwTextNode * pTextNd = GetCursor_()->GetNode().GetTextNode(); SwTextNode const*const pTextNd = sw::GetParaPropsNode(*GetLayout(),
GetCursor_()->GetPoint()->nNode);
if ( pTextNd ) if ( pTextNd )
{ {
......
...@@ -780,6 +780,7 @@ void SwEditShell::SetNumberingRestart() ...@@ -780,6 +780,7 @@ void SwEditShell::SetNumberingRestart()
SwTextNode* pTextNd( pNd->GetTextNode() ); SwTextNode* pTextNd( pNd->GetTextNode() );
SwNumRule* pNumRule( pTextNd->GetNumRule() ); SwNumRule* pNumRule( pTextNd->GetNumRule() );
// sw_redlinehide: not sure what this should do, only called from mail-merge
bool bIsNodeNum = bool bIsNodeNum =
( pNumRule && pTextNd->GetNum() && ( pNumRule && pTextNd->GetNum() &&
( pTextNd->HasNumber() || pTextNd->HasBullet() ) && ( pTextNd->HasNumber() || pTextNd->HasBullet() ) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment