Fix a compil issue on Windows.

A wxString was defined as const, but on Windows it is modified.
This commit is contained in:
jean-pierre charras 2019-12-06 08:39:13 +01:00
parent ac92afcf13
commit 52db6acb86
1 changed files with 4 additions and 8 deletions

View File

@ -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 );