diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-13 12:40:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-13 18:05:03 +0200 |
commit | 88f7ac5ccd358069e356c544888386b745c82732 (patch) | |
tree | e3afbbfcc537f14dd9b409be8ab71106e7bbded3 /sw/source/ui/misc | |
parent | 74edbc474975266a1cee36d47cb0443808f9c19a (diff) |
add GetDialogExampleSet rather than guess at it
Change-Id: I8d7fc780c77e7f410ce78eb07bcb92dcd71f6c13
Reviewed-on: https://gerrit.libreoffice.org/60434
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/misc')
-rw-r--r-- | sw/source/ui/misc/num.cxx | 2 | ||||
-rw-r--r-- | sw/source/ui/misc/pggrid.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/misc/num.cxx b/sw/source/ui/misc/num.cxx index 5b8d8b066e95..997ba0f5a4ad 100644 --- a/sw/source/ui/misc/num.cxx +++ b/sw/source/ui/misc/num.cxx @@ -348,7 +348,7 @@ void SwNumPositionTabPage::ActivatePage(const SfxItemSet& ) const SfxPoolItem* pItem; sal_uInt16 nTmpNumLvl = pOutlineDlg ? SwOutlineTabDialog::GetActNumLevel() : 0; - const SfxItemSet* pExampleSet = GetDialogController()->GetExampleSet(); + const SfxItemSet* pExampleSet = GetDialogExampleSet(); if(pExampleSet && pExampleSet->GetItemState(FN_PARAM_NUM_PRESET, false, &pItem) != SfxItemState::UNKNOWN) { bPreset = static_cast<const SfxBoolItem*>(pItem)->GetValue(); diff --git a/sw/source/ui/misc/pggrid.cxx b/sw/source/ui/misc/pggrid.cxx index 98dd7a271e87..036ee48ea0c6 100644 --- a/sw/source/ui/misc/pggrid.cxx +++ b/sw/source/ui/misc/pggrid.cxx @@ -487,7 +487,7 @@ void SwTextGridPage::GridModifyHdl() { const SfxItemSet& rOldSet = GetItemSet(); SfxItemSet aSet(rOldSet); - const SfxItemSet* pExSet = GetDialogController()->GetExampleSet(); + const SfxItemSet* pExSet = GetDialogExampleSet(); if(pExSet) aSet.Put(*pExSet); PutGridItem(aSet); |