mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
Fix a compil issue on Windows.
A wxString was defined as const, but on Windows it is modified.
This commit is contained in:
parent
ac92afcf13
commit
52db6acb86
@ -62,7 +62,7 @@ wxString EDA_FILE_SELECTOR( const wxString& aTitle,
|
|||||||
{
|
{
|
||||||
wxString fullfilename;
|
wxString fullfilename;
|
||||||
wxString curr_cwd = wxGetCwd();
|
wxString curr_cwd = wxGetCwd();
|
||||||
const wxString& defaultname = aFileName;
|
wxString defaultname = aFileName;
|
||||||
wxString defaultpath = aPath;
|
wxString defaultpath = aPath;
|
||||||
wxString dotted_Ext = wxT(".") + aExtension;
|
wxString dotted_Ext = wxT(".") + aExtension;
|
||||||
|
|
||||||
@ -91,14 +91,10 @@ wxString EDA_FILE_SELECTOR( const wxString& aTitle,
|
|||||||
aKeepWorkingDirectory );
|
aKeepWorkingDirectory );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fullfilename = wxFileSelector( aTitle,
|
fullfilename = wxFileSelector( aTitle, defaultpath, defaultname,
|
||||||
defaultpath,
|
dotted_Ext, aWildcard,
|
||||||
defaultname,
|
|
||||||
dotted_Ext,
|
|
||||||
aWildcard,
|
|
||||||
aStyle, // open mode wxFD_OPEN, wxFD_SAVE ..
|
aStyle, // open mode wxFD_OPEN, wxFD_SAVE ..
|
||||||
aParent,
|
aParent, aPosition.x, aPosition.y );
|
||||||
aPosition.x, aPosition.y );
|
|
||||||
|
|
||||||
if( aKeepWorkingDirectory )
|
if( aKeepWorkingDirectory )
|
||||||
wxSetWorkingDirectory( curr_cwd );
|
wxSetWorkingDirectory( curr_cwd );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user