Make doc extension (pdf) case insensitive.

This commit is contained in:
Baranovskiy Konstantin 2017-01-22 16:28:57 +02:00 committed by Chris Pavlina
parent 33449216b5
commit 4be2c79b87
1 changed files with 2 additions and 2 deletions

View File

@ -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;