summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/measure.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/tabpages/measure.cxx')
-rw-r--r--cui/source/tabpages/measure.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/tabpages/measure.cxx b/cui/source/tabpages/measure.cxx
index 3ad49e6cc668..6afab7062b32 100644
--- a/cui/source/tabpages/measure.cxx
+++ b/cui/source/tabpages/measure.cxx
@@ -820,7 +820,7 @@ void SvxMeasurePage::FillUnitLB()
}
void SvxMeasurePage::PageCreated(const SfxAllItemSet& aSet)
{
- SFX_ITEMSET_ARG(&aSet,pOfaPtrItem,OfaPtrItem,SID_OBJECT_LIST);
+ const OfaPtrItem* pOfaPtrItem = aSet.GetItem<OfaPtrItem>(SID_OBJECT_LIST, false);
if (pOfaPtrItem)
SetView( static_cast<SdrView *>(pOfaPtrItem->GetValue()));