summaryrefslogtreecommitdiff
path: root/sw/source/uibase/ribbar/workctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/ribbar/workctrl.cxx')
-rw-r--r--sw/source/uibase/ribbar/workctrl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/ribbar/workctrl.cxx b/sw/source/uibase/ribbar/workctrl.cxx
index 48a4a789b352..9fd4c0cb4375 100644
--- a/sw/source/uibase/ribbar/workctrl.cxx
+++ b/sw/source/uibase/ribbar/workctrl.cxx
@@ -95,7 +95,7 @@ void SwTbxInsertCtrl::StateChanged( sal_uInt16 /*nSID*/,
sal_uInt16 nId = GetId();
GetToolBox().EnableItem( nId, (GetItemState(pState) != SFX_ITEM_DISABLED) );
- if( eState == SFX_ITEM_AVAILABLE )
+ if( eState == SFX_ITEM_DEFAULT )
{
const SfxImageItem* pItem = PTR_CAST( SfxImageItem, pState );
if(pItem)
@@ -741,7 +741,7 @@ void SwPreviewZoomControl::StateChanged( sal_uInt16 /*nSID*/,
sal_uInt16 nId = GetId();
GetToolBox().EnableItem( nId, (GetItemState(pState) != SFX_ITEM_DISABLED) );
SwZoomBox_Impl* pBox = (SwZoomBox_Impl*)GetToolBox().GetItemWindow( GetId() );
- if(SFX_ITEM_AVAILABLE <= eState)
+ if(SFX_ITEM_DEFAULT <= eState)
{
OUString sZoom(unicode::formatPercent(((const SfxUInt16Item*)pState)->GetValue(),
Application::GetSettings().GetUILanguageTag()));