summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorAkshay Deep <akshaydeepiitr@gmail.com>2016-06-08 05:45:51 +0530
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2016-06-08 12:44:46 +0000
commit4501272cd2fee3534ef34b07a85aa0d26b7cae68 (patch)
tree8a2d3e914d35249ee50fa6a99e4fe4dd2ff48f5a /sd
parentf9a6d8255240c5841746400de7c9ed6a170e6f53 (diff)
Resolves: Default template is not loaded when starting with Template Selection
Change-Id: I378cc64da27a00fb6e2c4197e36864035d2b537a Reviewed-on: https://gerrit.libreoffice.org/26041 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/sdmod1.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 86285a436289..7ecdbe5c14fc 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -531,7 +531,8 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
bool bStartWithTemplate = pOpt->IsStartWithTemplate();
bool bNewDocDirect = rReq.GetSlot() == SID_NEWSD;
- if( bNewDocDirect && !bStartWithTemplate )
+
+ if( bNewDocDirect )
{
//we start without wizard
@@ -550,11 +551,9 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
pFrame = CreateEmptyDocument( xTargetFrame );
}
}
- else
- {
- //create an empty document into frame
- pFrame = CreateEmptyDocument( xTargetFrame );
+ if(bStartWithTemplate)
+ {
//Launch TemplateSelectionDialog
ScopedVclPtrInstance< SfxTemplateSelectionDlg > aTemplDlg( SfxGetpApp()->GetTopWindow());
aTemplDlg->Execute();