import_gfx: Make file selection case-insensitive

This adds the upper-case version of files names to the selection box for
filesystems that support case-sensitive file names.

Fixes: lp:1832853
* https://bugs.launchpad.net/kicad/+bug/1832853

(cherry picked from commit 36f70704eb)
This commit is contained in:
Seth Hillbrand 2019-06-14 07:33:48 -07:00
parent 40ba502853
commit ea467441d2
3 changed files with 4 additions and 2 deletions

View File

@ -148,6 +148,7 @@ public:
{ {
wxArrayString list; wxArrayString list;
list.Add( "dxf" ); list.Add( "dxf" );
list.Add( "DXF" );
return list; return list;
} }

View File

@ -62,7 +62,7 @@ public:
/** /**
* Return a list of wildcards that contains the file extensions * Return a list of wildcards that contains the file extensions
* handled by this plugin, separated with a coma. * handled by this plugin, separated with a semi-colon.
*/ */
wxString GetWildcards() const wxString GetWildcards() const
{ {
@ -74,7 +74,7 @@ public:
if( first ) if( first )
first = false; first = false;
else else
ret += ", "; ret += ";";
ret += "*." + extension; ret += "*." + extension;
} }

View File

@ -46,6 +46,7 @@ public:
{ {
wxArrayString list; wxArrayString list;
list.Add( "svg" ); list.Add( "svg" );
list.Add( "SVG" );
return list; return list;
} }