diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-05-05 12:39:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-05-05 16:26:38 +0200 |
commit | 176b933552bc0d0ded3363462e623fa300d5d892 (patch) | |
tree | ff336d9bb5ee293062b3e9087d49139646564164 /sfx2 | |
parent | bcd1d182a3dbcccc74b02ba051ac3520d0c4cd47 (diff) |
use GetFamilyItem_Impl to determine the active family
Change-Id: I1ddb4a0312f87cb549e5a054f79a72210af082a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93475
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/templdlg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index f399545f5249..2cfabba06da1 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -906,7 +906,8 @@ void SfxCommonTemplateDialog_Impl::EnableTreeDrag(bool bEnable) { if (pStyleSheetPool) { - SfxStyleSheetBase* pStyle = pStyleSheetPool->First(pStyleSheetPool->GetSearchFamily()); + const SfxStyleFamilyItem* pItem = GetFamilyItem_Impl(); + SfxStyleSheetBase* pStyle = pItem ? pStyleSheetPool->First(pItem->GetFamily()) : nullptr; bAllowReParentDrop = pStyle && pStyle->HasParentSupport() && bEnable; } bTreeDrag = bEnable; |