summaryrefslogtreecommitdiff
path: root/sc/source/ui/undo/undobase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/undo/undobase.cxx')
-rw-r--r--sc/source/ui/undo/undobase.cxx2
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