calc58: #i113946# undo does not work for deleting shapes
This commit is contained in:
parent
e050b9bc7c
commit
9c2ea353ea
1 changed files with 5 additions and 7 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue