debugging printfs
This commit is contained in:
parent
951e759fd1
commit
708a394c64
|
@ -30,6 +30,7 @@
|
|||
#include "fctsys.h"
|
||||
#include "common.h"
|
||||
#include "wxstruct.h"
|
||||
#include "macros.h"
|
||||
|
||||
|
||||
// Path list for online help
|
||||
|
@ -113,7 +114,7 @@ wxString MakeReducedFileName( const wxString& fullfilename,
|
|||
path.Replace( WIN_STRING_DIR_SEP, UNIX_STRING_DIR_SEP );
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
// names are case insensitive under windows
|
||||
// names are case insensitive under windows
|
||||
path.MakeLower();
|
||||
Cwd.MakeLower();
|
||||
ext.MakeLower();
|
||||
|
@ -169,13 +170,13 @@ wxString MakeFileName( const wxString& dir,
|
|||
|
||||
if( !dir.IsEmpty() )
|
||||
{
|
||||
if( !wxIsAbsolutePath( shortname ) )
|
||||
{
|
||||
if( ! shortname.StartsWith(wxT("./")) && ! shortname.StartsWith(wxT("../")) )
|
||||
{ /* no absolute path in shortname, add dir to shortname */
|
||||
fullfilename = dir;
|
||||
}
|
||||
}
|
||||
if( !wxIsAbsolutePath( shortname ) )
|
||||
{
|
||||
if( ! shortname.StartsWith(wxT("./")) && ! shortname.StartsWith(wxT("../")) )
|
||||
{ /* no absolute path in shortname, add dir to shortname */
|
||||
fullfilename = dir;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fullfilename += shortname; // Add shortname to dir or use shortname only
|
||||
|
@ -306,6 +307,17 @@ wxString EDA_FileSelector( const wxString& Title, /* Dialog ti
|
|||
|
||||
wxSetWorkingDirectory( defaultpath );
|
||||
|
||||
#if 0 && defined(DEBUG)
|
||||
printf("defaultpath=\"%s\" defaultname=\"%s\" Ext=\"%s\" Mask=\"%s\" flag=%d keep_working_directory=%d\n",
|
||||
CONV_TO_UTF8(defaultpath),
|
||||
CONV_TO_UTF8(defaultname),
|
||||
CONV_TO_UTF8(Ext),
|
||||
CONV_TO_UTF8(Mask),
|
||||
flag,
|
||||
keep_working_directory
|
||||
);
|
||||
#endif
|
||||
|
||||
fullfilename = wxFileSelector( wxString( Title ),
|
||||
defaultpath,
|
||||
defaultname,
|
||||
|
|
Loading…
Reference in New Issue