summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/edundo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/edit/edundo.cxx')
-rw-r--r--sw/source/core/edit/edundo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edundo.cxx b/sw/source/core/edit/edundo.cxx
index cfff6b8fa108..a55f45651fba 100644
--- a/sw/source/core/edit/edundo.cxx
+++ b/sw/source/core/edit/edundo.cxx
@@ -222,10 +222,10 @@ static void lcl_SelectSdrMarkList( SwEditShell* pShell,
OSL_ENSURE( pShell != nullptr, "need shell!" );
OSL_ENSURE( pSdrMarkList != nullptr, "need mark list" );
- if( dynamic_cast<const SwFEShell*>( pShell) == nullptr )
+ SwFEShell* pFEShell = dynamic_cast<SwFEShell*>( pShell );
+ if( !pFEShell )
return;
- SwFEShell* pFEShell = static_cast<SwFEShell*>( pShell );
bool bFirst = true;
for( size_t i = 0; i < pSdrMarkList->GetMarkCount(); ++i )
{