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.
This commit is contained in:
jean-pierre charras 2015-11-14 09:20:17 +01:00
parent a356293fee
commit c3b51b0d07
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -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 <stambaughw@verizon.net>
* 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;
}