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
{
//remove additional shape
uno::Reference< drawing::XShape > xShape( m_aSelection.getSelectedAdditionalShape() );
if( xShape.is() )
impl_ClearSelection();
{
impl_ClearSelection();
::vos::OGuard aSolarGuard( Application::GetSolarMutex() );
if ( m_pDrawViewWrapper )
{
::vos::OGuard aSolarGuard( Application::GetSolarMutex());
if( m_pDrawViewWrapper )
m_pDrawViewWrapper->UnmarkAll();
m_pDrawViewWrapper->DeleteMarked();
bReturn = true;
}
bReturn = DrawModelWrapper::removeShape( xShape );
}
}
return bReturn;