diff options
Diffstat (limited to 'filter/source/xsltdialog/xmlfilterdialogcomponent.cxx')
-rw-r--r-- | filter/source/xsltdialog/xmlfilterdialogcomponent.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx index 5d710e5b8e5d..ef70707dfd11 100644 --- a/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx +++ b/filter/source/xsltdialog/xmlfilterdialogcomponent.cxx @@ -326,12 +326,11 @@ sal_Int16 SAL_CALL XMLFilterDialogComponent::execute( ) throw(RuntimeException, if( nullptr == mpDialog ) { - vcl::Window* pParent = DIALOG_NO_PARENT; - if (mxParent.is()) - pParent = VCLUnoHelper::GetWindow(mxParent); - Reference< XComponent > xComp( this ); - mpDialog = VclPtr<XMLFilterSettingsDialog>::Create(pParent, mxContext); + if (mxParent.is()) + mpDialog = VclPtr<XMLFilterSettingsDialog>::Create(VCLUnoHelper::GetWindow(mxParent), mxContext); + else + mpDialog = VclPtr<XMLFilterSettingsDialog>::Create(nullptr, mxContext, Dialog::InitFlag::NoParent); mpDialog->Execute(); } else if( !mpDialog->IsVisible() ) |