Make the extension check for graphics import case insensitive

The regex for the file extension that matches against all case
possibilities is only built on Linux.

Fixes: lp:1842180
* https://bugs.launchpad.net/kicad/+bug/1842180
This commit is contained in:
Ian McInerney 2019-09-01 19:32:21 +02:00 committed by jean-pierre charras
parent 5e353e8967
commit 1b3322a538
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ std::unique_ptr<GRAPHICS_IMPORT_PLUGIN> GRAPHICS_IMPORT_MGR::GetPluginByExt(
for( const auto& fileExt : fileExtensions )
{
wxRegEx extensions( fileExt, wxRE_BASIC );
wxRegEx extensions( fileExt, wxRE_ICASE );
if( extensions.Matches( aExtension ) )
return plugin;