GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 52db6acb authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Fix a compil issue on Windows.

A wxString was defined as const, but on Windows it is modified.
parent ac92afcf
......@@ -62,7 +62,7 @@ wxString EDA_FILE_SELECTOR( const wxString& aTitle,
{
wxString fullfilename;
wxString curr_cwd = wxGetCwd();
const wxString& defaultname = aFileName;
wxString defaultname = aFileName;
wxString defaultpath = aPath;
wxString dotted_Ext = wxT(".") + aExtension;
......@@ -91,14 +91,10 @@ wxString EDA_FILE_SELECTOR( const wxString& aTitle,
aKeepWorkingDirectory );
#endif
fullfilename = wxFileSelector( aTitle,
defaultpath,
defaultname,
dotted_Ext,
aWildcard,
fullfilename = wxFileSelector( aTitle, defaultpath, defaultname,
dotted_Ext, aWildcard,
aStyle, // open mode wxFD_OPEN, wxFD_SAVE ..
aParent,
aPosition.x, aPosition.y );
aParent, aPosition.x, aPosition.y );
if( aKeepWorkingDirectory )
wxSetWorkingDirectory( curr_cwd );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment