From 81fa342c7aaddf94dc88a6014a69d18471775636 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Thu, 15 Aug 2013 00:52:08 +0200 Subject: Reduce scope Change-Id: If9941ea3cc7133397b9867b01d576529cc1e8f0b --- svx/source/tbxctrls/fillctrl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/tbxctrls/fillctrl.cxx b/svx/source/tbxctrls/fillctrl.cxx index 29e3e3b8a59e..8de3238f5bf2 100644 --- a/svx/source/tbxctrls/fillctrl.cxx +++ b/svx/source/tbxctrls/fillctrl.cxx @@ -96,7 +96,6 @@ void SvxFillToolBoxControl::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) { - bool bEnableControls = false; if ( bIgnoreStatusUpdate ) return; @@ -115,6 +114,7 @@ void SvxFillToolBoxControl::StateChanged( { if ( SFX_ITEM_AVAILABLE == eState ) { + bool bEnableControls = false; if( nSID == SID_ATTR_FILL_STYLE ) { delete pStyleItem; -- cgit