From 1ae721442c14703b0091171c22264a3beeb258df Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Wed, 7 Mar 2018 14:18:45 -0500 Subject: [PATCH] Pcbnew: fix invalid footprint name illegal character list. Footprint names cannot contain ':', '\n', or '\r'. --- pcbnew/class_module.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/class_module.cpp b/pcbnew/class_module.cpp index 9968991b47..8c11e93f2c 100644 --- a/pcbnew/class_module.cpp +++ b/pcbnew/class_module.cpp @@ -3,8 +3,8 @@ * * Copyright (C) 2017 Jean-Pierre Charras, jp.charras at wanadoo.fr * Copyright (C) 2015 SoftPLC Corporation, Dick Hollenbeck - * Copyright (C) 2015 Wayne Stambaugh - * Copyright (C) 1992-2017 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2015 Wayne Stambaugh + * 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;