mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 21:01:22 +00:00
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:
parent
5e353e8967
commit
1b3322a538
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user