summaryrefslogtreecommitdiff
path: root/sd/source/core/undo/undoobjects.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/core/undo/undoobjects.cxx')
-rw-r--r--sd/source/core/undo/undoobjects.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sd/source/core/undo/undoobjects.cxx b/sd/source/core/undo/undoobjects.cxx
index d8db1329af56..6b3a4e80876e 100644
--- a/sd/source/core/undo/undoobjects.cxx
+++ b/sd/source/core/undo/undoobjects.cxx
@@ -58,10 +58,7 @@ UndoRemovePresObjectImpl::UndoRemovePresObjectImpl( SdrObject& rObject )
css::uno::Reference< css::drawing::XShape > xShape( rObject.getUnoShape(), css::uno::UNO_QUERY );
if( pPage->getMainSequence()->hasEffect( xShape ) )
{
- mpUndoAnimation.reset(
- new UndoAnimation( // TTTT may use ref? Or just *SdrPage?
- static_cast< SdDrawDocument* >(&pPage->getSdrModelFromSdrPage()),
- pPage));
+ mpUndoAnimation.reset( new UndoAnimation( static_cast< SdDrawDocument* >( pPage->GetModel() ), pPage ) );
}
}
}
@@ -183,10 +180,7 @@ UndoObjectSetText::UndoObjectSetText( SdrObject& rObject, sal_Int32 nText )
css::uno::Reference< css::drawing::XShape > xShape( rObject.getUnoShape(), css::uno::UNO_QUERY );
if( pPage->getMainSequence()->hasEffect( xShape ) )
{
- mpUndoAnimation.reset(
- new UndoAnimation(
- static_cast< SdDrawDocument* >(&pPage->getSdrModelFromSdrPage()),
- pPage));
+ mpUndoAnimation.reset( new UndoAnimation( static_cast< SdDrawDocument* >( pPage->GetModel() ), pPage ) );
}
}
}