From 3a5530d441b63cb4a4c87777bea5af36c1ed969e Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Mon, 21 Feb 2022 11:32:36 +0100 Subject: [PATCH] Gerbview: fix typo that prevent lo load a .gbrjob file from command line Fixes #10921 https://gitlab.com/kicad/code/kicad/issues/10921 --- gerbview/gerbview_frame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gerbview/gerbview_frame.cpp b/gerbview/gerbview_frame.cpp index 7833be546e..f2558cfed7 100644 --- a/gerbview/gerbview_frame.cpp +++ b/gerbview/gerbview_frame.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2018 Jean-Pierre Charras, jp.charras at wanadoo.fr - * Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -258,9 +258,9 @@ bool GERBVIEW_FRAME::OpenProjectFiles( const std::vector& aFileSet, in { wxString ext = wxFileName( aFileSet[i] ).GetExt().Lower(); - if( ext == wxT( "zip" ) ) + if( ext == ArchiveFileExtension ) LoadZipArchiveFile( aFileSet[i] ); - else if( ext == wxT( "gbrprj" ) ) + else if( ext == GerberJobFileExtension ) LoadGerberJobFile( aFileSet[i] ); else {