summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2019-10-04 18:12:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-05 09:10:21 +0200
commitfaec1a870e671e79d1cdc532a509c345e3731c16 (patch)
treef5941546fc95153d5301c294b7ab653fce23deb1 /cui
parent85091c7bf5c3f2fcf409fd2691f227ca7f353945 (diff)
Convert SID_PAPER_START/END to SfxUInt16Item
Change-Id: I62067075853b1d5c893c14d72a247b07a3cc5585 Reviewed-on: https://gerrit.libreoffice.org/80248 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/tabpages/page.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/tabpages/page.cxx b/cui/source/tabpages/page.cxx
index 41e65c3c2b59..9ba650f5ffea 100644
--- a/cui/source/tabpages/page.cxx
+++ b/cui/source/tabpages/page.cxx
@@ -1520,8 +1520,8 @@ bool SvxPageDescPage::IsMarginOutOfRange() const
void SvxPageDescPage::PageCreated(const SfxAllItemSet& aSet)
{
const SfxUInt16Item* pModeItem = aSet.GetItem(SID_ENUM_PAGE_MODE, false);
- const SfxAllEnumItem* pPaperStartItem = aSet.GetItem<SfxAllEnumItem>(SID_PAPER_START, false);
- const SfxAllEnumItem* pPaperEndItem = aSet.GetItem<SfxAllEnumItem>(SID_PAPER_END, false);
+ const SfxUInt16Item* pPaperStartItem = aSet.GetItem(SID_PAPER_START, false);
+ const SfxUInt16Item* pPaperEndItem = aSet.GetItem(SID_PAPER_END, false);
const SfxStringListItem* pCollectListItem = aSet.GetItem<SfxStringListItem>(SID_COLLECT_LIST, false);
const SfxBoolItem* pSupportDrawingLayerFillStyleItem = aSet.GetItem<SfxBoolItem>(SID_DRAWINGLAYER_FILLSTYLES, false);
@@ -1532,7 +1532,7 @@ void SvxPageDescPage::PageCreated(const SfxAllItemSet& aSet)
if(pPaperStartItem && pPaperEndItem)
{
- SetPaperFormatRanges(static_cast<Paper>(pPaperStartItem->GetEnumValue()));
+ SetPaperFormatRanges(static_cast<Paper>(pPaperStartItem->GetValue()));
}
if(pCollectListItem)