calc58: #i113946# undo does not work for deleting shapes

This commit is contained in:
Thomas Benisch 2010-08-20 13:03:55 +02:00
parent e050b9bc7c
commit 9c2ea353ea

View file

@ -827,16 +827,14 @@ bool ChartController::executeDispatch_Delete()
else else
{ {
//remove additional shape //remove additional shape
uno::Reference< drawing::XShape > xShape( m_aSelection.getSelectedAdditionalShape() ); impl_ClearSelection();
if( xShape.is() )
{ {
impl_ClearSelection(); ::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
if ( m_pDrawViewWrapper )
{ {
::vos::OGuard aSolarGuard( Application::GetSolarMutex()); m_pDrawViewWrapper->DeleteMarked();
if( m_pDrawViewWrapper ) bReturn = true;
m_pDrawViewWrapper->UnmarkAll();
} }
bReturn = DrawModelWrapper::removeShape( xShape );
} }
} }
return bReturn; return bReturn;