[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 1136
Date : Fri May 19 17:44:02 BST 2006
Changed paths:
M /Trunk/XaraLX/wxOil/fileutil.cpp
Fix error on file/new when there is not /usr/share/xaralx/doc/Templates
Diff:
Index: Trunk/XaraLX/wxOil/fileutil.cpp
===================================================================
--- Trunk/XaraLX/wxOil/fileutil.cpp (revision 1135)
+++ Trunk/XaraLX/wxOil/fileutil.cpp (revision 1136)
@@ -285,7 +285,8 @@
{
// find first
PathName path( SearchPath );
- result = s_dirSearch.Open( path.GetLocation() );
+ result = wxDir::Exists( path.GetLocation() );
+ result = result && s_dirSearch.Open( path.GetLocation() );
result = result && s_dirSearch.GetFirst( &strFileName, (PCTSTR)path.GetFileName(), wxDIR_FILES );
s_fStarted = result;
}
Xara