From 3c7a7b538e8ca8b310ae9778ae9ace5ae937a4f1 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Mon, 20 Jul 2015 20:34:31 +0300 Subject: Simplify Change-Id: I6fff5af5d623bff6f8adedf6f3d42d849ea4d24b --- sw/source/uibase/uiview/viewdraw.cxx | 1 - sw/source/uibase/uiview/viewstat.cxx | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'sw/source/uibase/uiview') diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx index b81cf88835d9..d342512ac89f 100644 --- a/sw/source/uibase/uiview/viewdraw.cxx +++ b/sw/source/uibase/uiview/viewdraw.cxx @@ -320,7 +320,6 @@ void SwView::ExecDraw(SfxRequest& rReq) if ( pStringItem ) { m_sDrawCustom = pStringItem->GetValue(); - m_aCurrShapeEnumCommand[ nSlotId - SID_DRAWTBX_CS_BASIC ] = m_sDrawCustom; SfxBindings& rBind = GetViewFrame()->GetBindings(); rBind.Invalidate( nSlotId ); rBind.Update( nSlotId ); diff --git a/sw/source/uibase/uiview/viewstat.cxx b/sw/source/uibase/uiview/viewstat.cxx index a7d2c16a8539..43b0c0fd4a2d 100644 --- a/sw/source/uibase/uiview/viewstat.cxx +++ b/sw/source/uibase/uiview/viewstat.cxx @@ -520,10 +520,7 @@ void SwView::GetDrawState(SfxItemSet &rSet) if ( bWeb ) rSet.DisableItem( nWhich ); else - { - bool bCurrentActive = (m_nDrawSfxId == nWhich) && (m_aCurrShapeEnumCommand[ nWhich - SID_DRAWTBX_CS_BASIC ] == m_sDrawCustom); - rSet.Put( SfxBoolItem( nWhich, bCurrentActive ) ); - } + rSet.Put( SfxBoolItem( nWhich, m_nDrawSfxId == nWhich ) ); } break; -- cgit v1.2.3