diff options
Diffstat (limited to 'sc/source/ui/undo/undobase.cxx')
-rw-r--r-- | sc/source/ui/undo/undobase.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx index cecea867609f..522f64b2beb5 100644 --- a/sc/source/ui/undo/undobase.cxx +++ b/sc/source/ui/undo/undobase.cxx @@ -75,7 +75,7 @@ bool ScSimpleUndo::Merge( SfxUndoAction *pNextAction ) // AddUndoAction is only called with bTryMerg=sal_True // for automatic update. - if ( !pDetectiveUndo && pNextAction->ISA(ScUndoDraw) ) + if ( !pDetectiveUndo && dynamic_cast<const ScUndoDraw*>( pNextAction) != nullptr ) { // Take SdrUndoAction from ScUndoDraw Action, // ScUndoDraw is later deleted by the UndoManager |