From 7c8cc04bb2f31e97230469c6f52d10a81363d4b5 Mon Sep 17 00:00:00 2001 From: Meryem Ezber Date: Thu, 27 Jun 2019 21:03:03 +0300 Subject: removal of excess code block Change-Id: I2c2161f4159be53f69fce542f7538581951750d8 Reviewed-on: https://gerrit.libreoffice.org/74817 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/drawfunc/drawsh.cxx | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/sc/source/ui/drawfunc/drawsh.cxx b/sc/source/ui/drawfunc/drawsh.cxx index 2b3414368a96..701f7c970659 100644 --- a/sc/source/ui/drawfunc/drawsh.cxx +++ b/sc/source/ui/drawfunc/drawsh.cxx @@ -239,7 +239,6 @@ void ScDrawShell::ExecDrawAttr( SfxRequest& rReq ) break; case SID_ATTR_TRANSFORM: - { { if ( pView->AreObjectsMarked() ) { @@ -291,21 +290,21 @@ void ScDrawShell::ExecDrawAttr( SfxRequest& rReq ) else pView->SetGeoAttrToMarked( *pArgs ); } - } - ScTabViewShell* pViewShell = pViewData->GetViewShell(); - SfxBindings& rBindings=pViewShell->GetViewFrame()->GetBindings(); - rBindings.Invalidate(SID_ATTR_TRANSFORM_WIDTH); - rBindings.Invalidate(SID_ATTR_TRANSFORM_HEIGHT); - rBindings.Invalidate(SID_ATTR_TRANSFORM_POS_X); - rBindings.Invalidate(SID_ATTR_TRANSFORM_POS_Y); - rBindings.Invalidate(SID_ATTR_TRANSFORM_ANGLE); - rBindings.Invalidate(SID_ATTR_TRANSFORM_ROT_X); - rBindings.Invalidate(SID_ATTR_TRANSFORM_ROT_Y); - rBindings.Invalidate(SID_ATTR_TRANSFORM_AUTOWIDTH); - rBindings.Invalidate(SID_ATTR_TRANSFORM_AUTOHEIGHT); + ScTabViewShell* pViewShell = pViewData->GetViewShell(); + SfxBindings& rBindings=pViewShell->GetViewFrame()->GetBindings(); + rBindings.Invalidate(SID_ATTR_TRANSFORM_WIDTH); + rBindings.Invalidate(SID_ATTR_TRANSFORM_HEIGHT); + rBindings.Invalidate(SID_ATTR_TRANSFORM_POS_X); + rBindings.Invalidate(SID_ATTR_TRANSFORM_POS_Y); + rBindings.Invalidate(SID_ATTR_TRANSFORM_ANGLE); + rBindings.Invalidate(SID_ATTR_TRANSFORM_ROT_X); + rBindings.Invalidate(SID_ATTR_TRANSFORM_ROT_Y); + rBindings.Invalidate(SID_ATTR_TRANSFORM_AUTOWIDTH); + rBindings.Invalidate(SID_ATTR_TRANSFORM_AUTOHEIGHT); + + } break; - } default: break; -- cgit