From 1b3322a538d110c4e5c9dc2b32f816083723a720 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Sun, 1 Sep 2019 19:32:21 +0200 Subject: [PATCH] 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 --- pcbnew/import_gfx/graphics_import_mgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/import_gfx/graphics_import_mgr.cpp b/pcbnew/import_gfx/graphics_import_mgr.cpp index f38711f431..9be929fb9c 100644 --- a/pcbnew/import_gfx/graphics_import_mgr.cpp +++ b/pcbnew/import_gfx/graphics_import_mgr.cpp @@ -72,7 +72,7 @@ std::unique_ptr 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;