Pcbnew: fix invalid footprint name illegal character list.
Footprint names cannot contain ':', '\n', or '\r'.
This commit is contained in:
parent
85c8648045
commit
1ae721442c
|
@ -3,8 +3,8 @@
|
|||
*
|
||||
* Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||
* Copyright (C) 2015 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
|
||||
* Copyright (C) 2015 Wayne Stambaugh <stambaughw@verizon.net>
|
||||
* Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2015 Wayne Stambaugh <stambaughw@gmail.com>
|
||||
* Copyright (C) 1992-2018 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
|
||||
|
@ -1004,8 +1004,8 @@ bool MODULE::IsLibNameValid( const wxString & aName )
|
|||
|
||||
const wxChar* MODULE::StringLibNameInvalidChars( bool aUserReadable )
|
||||
{
|
||||
static const wxChar invalidChars[] = wxT("%$\t \"\\/");
|
||||
static const wxChar invalidCharsReadable[] = wxT("% $ 'tab' 'space' \\ \" /");
|
||||
static const wxChar invalidChars[] = wxT("%$\t\n\r \"\\/:");
|
||||
static const wxChar invalidCharsReadable[] = wxT("% $ 'tab' 'return' 'line feed' 'space' \\ \" / :");
|
||||
|
||||
if( aUserReadable )
|
||||
return invalidCharsReadable;
|
||||
|
|
Loading…
Reference in New Issue