summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-11-25 20:16:14 +0000
committerXisco Fauli <xiscofauli@libreoffice.org>2021-11-29 09:40:38 +0100
commit038dcdd6d54c0c0866ddcaeffb19846095f4c554 (patch)
tree82cf55d94c8581bf4e01e37759e55a306500250a /sfx2
parente288bd6b0f8eb437ce6830460cf203bf6694272d (diff)
mxTreeBox is always true
this has evolved from an optional m_pTreeBox widget to an always present widget that's optionally visible and this case wasn't updated somewhere along the line. Use "IsSafeForWaterCan" which the other cases of this pattern were merged to Change-Id: Ia20327ade5378bbdfa9fbfecbfa9705a33555f17 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125835 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125910 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/templdlg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 5a7041f22cbf..8f9f213f40ee 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -1963,7 +1963,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyleDependents()
if ( IsInitialized() &&
IsCheckedItem("watercan") &&
// only if that region is allowed
- nullptr != pFamilyState[nActFamily-1] && (mxTreeBox || mxFmtLb->count_selected_rows() <= 1) )
+ nullptr != pFamilyState[nActFamily-1] && IsSafeForWaterCan() )
{
Execute_Impl(SID_STYLE_WATERCAN,
"", "", 0);