From 4be2c79b878633d46fb7c3f85198674498e17f13 Mon Sep 17 00:00:00 2001 From: Baranovskiy Konstantin Date: Sun, 22 Jan 2017 16:28:57 +0200 Subject: [PATCH] Make doc extension (pdf) case insensitive. --- common/eda_doc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/eda_doc.cpp b/common/eda_doc.cpp index d94d00c6ea..608a6b3e49 100644 --- a/common/eda_doc.cpp +++ b/common/eda_doc.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2014 Jean-Pierre Charras, jp.charras at wanadoo.fr - * Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors. + * Copyright (C) 2014-2017 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 @@ -166,7 +166,7 @@ bool GetAssociatedDocument( wxWindow* aParent, wxString file_ext = currentFileName.GetExt(); - if( file_ext == wxT( "pdf" ) ) + if( file_ext.Lower() == wxT( "pdf" ) ) { success = OpenPDF( fullfilename ); return success;