[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 1048
Date : Mon May 15 12:24:07 BST 2006
Changed paths:
M /Trunk/XaraLX/wxOil/camelot.cpp
Load default template when started with no params (BZ# 996)
Diff:
Index: Trunk/XaraLX/wxOil/camelot.cpp
===================================================================
--- Trunk/XaraLX/wxOil/camelot.cpp (revision 1047)
+++ Trunk/XaraLX/wxOil/camelot.cpp (revision 1048)
@@ -658,8 +658,13 @@
// Go through the command line and load documents
TRACET(_T("CCamApp::Init Loading docs (if any) from command line"));
- for ( UINT32 i=0 ; i<parser.GetParamCount() ; i++ )
- m_docManager->CreateDocument(parser.GetParam(i),wxDOC_SILENT);
+ if( 0 == parser.GetParamCount() )
+ m_docManager->CreateDocument( _T(""), wxDOC_NEW );
+ else
+ {
+ for ( UINT32 i=0 ; i<parser.GetParamCount() ; i++ )
+ m_docManager->CreateDocument(parser.GetParam(i),wxDOC_SILENT);
+ }
// Remove the splash screen
CamResource::DoneInit();
Xara