diff options
author | Jim Raykowski <raykowj@gmail.com> | 2019-08-01 08:57:08 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2019-08-03 20:40:53 +0200 |
commit | 30c551416d23ff09b8bfe09b69059c052c25c4e6 (patch) | |
tree | 04a8fc9231268cc43082ed1181a467345b60b5ec | |
parent | 087f778579900998e8a37e2e9581ea230870a26e (diff) |
tdf#120286 Disable edit style if inherit from is disabled or None
Change-Id: Ia08adef09292d330d570a5a931d83317ffa7c3f2
Reviewed-on: https://gerrit.libreoffice.org/76825
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r-- | sfx2/source/dialog/mgetempl.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sfx2/source/dialog/mgetempl.cxx b/sfx2/source/dialog/mgetempl.cxx index 4b022a8eddc0..817174cf1b99 100644 --- a/sfx2/source/dialog/mgetempl.cxx +++ b/sfx2/source/dialog/mgetempl.cxx @@ -505,7 +505,10 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet* /*rAttrSet*/ ) pStyle->SetParent( aParent ); if ( aParent.isEmpty() ) + { m_xBaseLb->set_active_text( SfxResId(STR_NONE) ); + m_xEditLinkStyleBtn->set_sensitive( false ); + } else m_xBaseLb->set_active_text( aParent ); @@ -516,6 +519,8 @@ void SfxManageStyleSheetPage::Reset( const SfxItemSet* /*rAttrSet*/ ) m_xBaseLb->set_sensitive(false); } } + else + m_xEditLinkStyleBtn->set_sensitive( false ); if (m_xFilterLb->get_sensitive()) { |