diff options
Diffstat (limited to 'svx/source/toolbars/extrusionbar.cxx')
-rw-r--r-- | svx/source/toolbars/extrusionbar.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/svx/source/toolbars/extrusionbar.cxx b/svx/source/toolbars/extrusionbar.cxx index 5ca8a22d1b2b..5297f304b7bf 100644 --- a/svx/source/toolbars/extrusionbar.cxx +++ b/svx/source/toolbars/extrusionbar.cxx @@ -586,28 +586,28 @@ void ExtrusionBar::execute( SdrView* pSdrView, SfxRequest const & rReq, SfxBindi break; } - if( nSID == SID_EXTRUSION_TOGGLE ) - { - static const sal_uInt16 SidArray[] = { - SID_EXTRUSION_TILT_DOWN, - SID_EXTRUSION_TILT_UP, - SID_EXTRUSION_TILT_LEFT, - SID_EXTRUSION_TILT_RIGHT, - SID_EXTRUSION_DEPTH_FLOATER, - SID_EXTRUSION_DIRECTION_FLOATER, - SID_EXTRUSION_LIGHTING_FLOATER, - SID_EXTRUSION_SURFACE_FLOATER, - SID_EXTRUSION_3D_COLOR, - SID_EXTRUSION_DEPTH, - SID_EXTRUSION_DIRECTION, - SID_EXTRUSION_PROJECTION, - SID_EXTRUSION_LIGHTING_DIRECTION, - SID_EXTRUSION_LIGHTING_INTENSITY, - SID_EXTRUSION_SURFACE, - 0 }; - - rBindings.Invalidate( SidArray ); - } + if( nSID != SID_EXTRUSION_TOGGLE ) + return; + + static const sal_uInt16 SidArray[] = { + SID_EXTRUSION_TILT_DOWN, + SID_EXTRUSION_TILT_UP, + SID_EXTRUSION_TILT_LEFT, + SID_EXTRUSION_TILT_RIGHT, + SID_EXTRUSION_DEPTH_FLOATER, + SID_EXTRUSION_DIRECTION_FLOATER, + SID_EXTRUSION_LIGHTING_FLOATER, + SID_EXTRUSION_SURFACE_FLOATER, + SID_EXTRUSION_3D_COLOR, + SID_EXTRUSION_DEPTH, + SID_EXTRUSION_DIRECTION, + SID_EXTRUSION_PROJECTION, + SID_EXTRUSION_LIGHTING_DIRECTION, + SID_EXTRUSION_LIGHTING_INTENSITY, + SID_EXTRUSION_SURFACE, + 0 }; + + rBindings.Invalidate( SidArray ); } static void getExtrusionDirectionState( SdrView const * pSdrView, SfxItemSet& rSet ) |