diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/app/sdmod1.cxx | 9 |
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(); |