summaryrefslogtreecommitdiffstats
path: root/reportdesign/source/ui/report/ReportController.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'reportdesign/source/ui/report/ReportController.cxx')
-rw-r--r--reportdesign/source/ui/report/ReportController.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx
index c0288eb92de6..7bc4c6a4f4d1 100644
--- a/reportdesign/source/ui/report/ReportController.cxx
+++ b/reportdesign/source/ui/report/ReportController.cxx
@@ -2422,16 +2422,16 @@ void OReportController::openPageDialog(const uno::Reference<report::XSection>& _
}
{ // want the dialog to be destroyed before our set
- ScopedVclPtrInstance<ORptPageDialog> aDlg(
- getView(), pDescriptor.get(),_xSection.is()
+ ORptPageDialog aDlg(
+ getFrameWeld(), pDescriptor.get(),_xSection.is()
? OUString("BackgroundDialog")
: OUString("PageDialog"));
- if (RET_OK == aDlg->Execute())
+ if (aDlg.execute() == RET_OK)
{
// ItemSet->UNO
// UNO-properties
- const SfxItemSet* pSet = aDlg->GetOutputItemSet();
+ const SfxItemSet* pSet = aDlg.GetOutputItemSet();
if ( _xSection.is() )
{
const SfxPoolItem* pItem;