From 631eecd7d61cd8c7e4ad77e0e657c3b4b777d184 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 15 Jun 2022 14:43:27 +0200 Subject: [PATCH] symbol_checker: better message about reference prefix. --- eeschema/symbol_checker.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeschema/symbol_checker.cpp b/eeschema/symbol_checker.cpp index a9d9a995bb..346bb2476e 100644 --- a/eeschema/symbol_checker.cpp +++ b/eeschema/symbol_checker.cpp @@ -51,13 +51,16 @@ void CheckLibSymbol( LIB_SYMBOL* aSymbol, std::vector& aMessages, wxString msg; // Test reference prefix validity: + // if the symbol is saved in a library, the prefix should not ends by a digit or a '?' + // but it is acceptable if the symbol is saved to aschematic wxString reference_base = aSymbol->GetReferenceField().GetText(); wxString illegal_end( wxT( "0123456789?" ) ); wxUniChar last_char = reference_base.Last(); if( illegal_end.Find( last_char ) != wxNOT_FOUND ) { - msg.Printf( _( "Illegal Reference prefix:
Reference Prefix cannot ends by '%s'" ), + msg.Printf( _( "Warning: reference prefix
prefix ending by '%s' can create" + " issues if saved in a symbol library" ), illegal_end ); msg += wxT( "

" ); aMessages.push_back( msg );