summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/tplcitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/dialog/tplcitem.cxx')
-rw-r--r--sfx2/source/dialog/tplcitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/dialog/tplcitem.cxx b/sfx2/source/dialog/tplcitem.cxx
index 3ed5449d01eb..cdb9899f7e7f 100644
--- a/sfx2/source/dialog/tplcitem.cxx
+++ b/sfx2/source/dialog/tplcitem.cxx
@@ -66,7 +66,7 @@ void SfxTemplateControllerItem::StateChanged( sal_uInt16 nSID, SfxItemState eSta
case SID_STYLE_FAMILY4:
case SID_STYLE_FAMILY5:
{
- bool bAvailable = SFX_ITEM_AVAILABLE == eState;
+ bool bAvailable = SFX_ITEM_DEFAULT == eState;
if ( !bAvailable )
rTemplateDlg.SetFamilyState(GetId(), 0);
else {
@@ -100,7 +100,7 @@ void SfxTemplateControllerItem::StateChanged( sal_uInt16 nSID, SfxItemState eSta
{
if ( eState == SFX_ITEM_DISABLED )
nWaterCanState = 0xff;
- else if( eState == SFX_ITEM_AVAILABLE )
+ else if( eState == SFX_ITEM_DEFAULT )
{
const SfxBoolItem *pStateItem = PTR_CAST(SfxBoolItem, pItem);
assert(pStateItem); //BoolItem expected