diff options
Diffstat (limited to 'sfx2/source/dialog/mgetempl.cxx')
-rw-r--r-- | sfx2/source/dialog/mgetempl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 836ca6de1164..4b022a8eddc0 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -83,7 +83,7 @@ SfxManageStyleSheetPage::SfxManageStyleSheetPage(TabPageParent pParent, const Sf // this Page needs ExchangeSupport SetExchangeSupport(); - if ( aFollow == aName ) + if ( aFollow.isEmpty() || aFollow == aName ) m_xEditStyleBtn->set_sensitive(false); else m_xEditStyleBtn->set_sensitive(true); @@ -489,7 +489,10 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet* /*rAttrSet*/ ) pStyle->SetFollow( aFollow ); if ( aFollow.isEmpty() ) + { m_xFollowLb->set_active_text( aName ); + m_xEditStyleBtn->set_sensitive( false ); + } else m_xFollowLb->set_active_text( aFollow ); } |