From 36f70704ebb9fb28a32cb277a6ae9755403875c2 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 14 Jun 2019 07:33:48 -0700 Subject: [PATCH] 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 --- pcbnew/import_gfx/dxf_import_plugin.h | 1 + pcbnew/import_gfx/graphics_import_plugin.h | 4 ++-- pcbnew/import_gfx/svg_import_plugin.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/import_gfx/dxf_import_plugin.h b/pcbnew/import_gfx/dxf_import_plugin.h index c13234b034..9288f37523 100644 --- a/pcbnew/import_gfx/dxf_import_plugin.h +++ b/pcbnew/import_gfx/dxf_import_plugin.h @@ -148,6 +148,7 @@ public: { wxArrayString list; list.Add( "dxf" ); + list.Add( "DXF" ); return list; } diff --git a/pcbnew/import_gfx/graphics_import_plugin.h b/pcbnew/import_gfx/graphics_import_plugin.h index 523dead39d..548a887246 100644 --- a/pcbnew/import_gfx/graphics_import_plugin.h +++ b/pcbnew/import_gfx/graphics_import_plugin.h @@ -62,7 +62,7 @@ public: /** * 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 { @@ -74,7 +74,7 @@ public: if( first ) first = false; else - ret += ", "; + ret += ";"; ret += "*." + extension; } diff --git a/pcbnew/import_gfx/svg_import_plugin.h b/pcbnew/import_gfx/svg_import_plugin.h index 07ecd9f293..13c7c3c330 100644 --- a/pcbnew/import_gfx/svg_import_plugin.h +++ b/pcbnew/import_gfx/svg_import_plugin.h @@ -46,6 +46,7 @@ public: { wxArrayString list; list.Add( "svg" ); + list.Add( "SVG" ); return list; }