summaryrefslogtreecommitdiff
path: root/sd/source/ui/app/sdmod1.cxx
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-06-06 15:51:21 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-06-07 08:41:53 +0000
commit28fca2e3132e3b66b337c53df58233615c48f0fa (patch)
tree5a9b75f19f6602103fef7944d88feae089060d10 /sd/source/ui/app/sdmod1.cxx
parent837c1e2e9cc6886e74e4f32d6296d07daf23a2e1 (diff)
Resolves: Template selection dialog has wrong parent
Change-Id: I500e78c0256cf6b7de03a537190e842f5e878e6e Reviewed-on: https://gerrit.libreoffice.org/25959 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd/source/ui/app/sdmod1.cxx')
-rw-r--r--sd/source/ui/app/sdmod1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 9fe8646f35e5..86285a436289 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -556,7 +556,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
pFrame = CreateEmptyDocument( xTargetFrame );
//Launch TemplateSelectionDialog
- ScopedVclPtrInstance< SfxTemplateSelectionDlg > aTemplDlg;
+ ScopedVclPtrInstance< SfxTemplateSelectionDlg > aTemplDlg( SfxGetpApp()->GetTopWindow());
aTemplDlg->Execute();
//check to disable the dialog