Browse Source

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
pull/15/head
Ian McInerney 6 years ago
committed by jean-pierre charras
parent
commit
1b3322a538
  1. 2
      pcbnew/import_gfx/graphics_import_mgr.cpp

2
pcbnew/import_gfx/graphics_import_mgr.cpp

@ -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…
Cancel
Save