From c3b51b0d0753eb382b901904f7153c7abf09ee05 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 14 Nov 2015 09:20:17 +0100 Subject: [PATCH] 2 very minor fixes in Eeschema: * Component doc: add https as prefix in list of urls which are opened by a Internet browser. * Import .cmp files: Use "IdModule" instead of "IdModule =" as keyword for footprint name and use '=' only as separator. --- common/eda_doc.cpp | 5 +++-- eeschema/backanno.cpp | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/eda_doc.cpp b/common/eda_doc.cpp index d422ab06b2..d94d00c6ea 100644 --- a/common/eda_doc.cpp +++ b/common/eda_doc.cpp @@ -94,15 +94,16 @@ bool GetAssociatedDocument( wxWindow* aParent, bool success = false; // Is an internet url - static const wxChar* url_header[3] = { + static const wxChar* url_header[] = { wxT( "http:" ), + wxT( "https:" ), wxT( "ftp:" ), wxT( "www." ) }; for( unsigned ii = 0; ii < DIM(url_header); ii++ ) { - if( aDocName.First( url_header[ii] ) == 0 ) //. seems an internet url + if( aDocName.First( url_header[ii] ) == 0 ) // looks like an internet url { wxLaunchDefaultBrowser( aDocName ); return true; diff --git a/eeschema/backanno.cpp b/eeschema/backanno.cpp index 8fd9fbf1e0..671f727bca 100644 --- a/eeschema/backanno.cpp +++ b/eeschema/backanno.cpp @@ -1,7 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2013 Jean-Pierre Charras, jp.charras at wanadoo.fr + * Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr * Copyright (C) 2008-2013 Wayne Stambaugh * Copyright (C) 2004-2015 KiCad Developers, see change_log.txt for contributors. * @@ -182,7 +182,7 @@ bool SCH_EDIT_FRAME::ProcessCmpToFootprintLinkFile( const wxString& aFullFilenam { reference = value; } - else if( buffer.StartsWith( wxT( "IdModule =" ) ) ) + else if( buffer.StartsWith( wxT( "IdModule" ) ) ) { footprint = value; }