From e07ef3be9cc5e19155b835fc5a4a225c4b3e8c52 Mon Sep 17 00:00:00 2001 From: Wayne Stambaugh Date: Thu, 4 Apr 2019 09:48:57 -0400 Subject: [PATCH] Minor schematic formatter fix. Apparently at some point in KiCad's development, a '~' character was prefixed to the symbol name to indicate that it was not visible. The visibility state is now saved in the name field so remove the prefix. The parser was kept unchanged. Fixes lp:1632048 https://bugs.launchpad.net/kicad/+bug/1632048 (cherry picked from commit ee14da3093858ab9eee1a17f02e1f3488b0c797c) --- eeschema/sch_legacy_plugin.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/eeschema/sch_legacy_plugin.cpp b/eeschema/sch_legacy_plugin.cpp index 88f24482cb..2bcf8eefef 100644 --- a/eeschema/sch_legacy_plugin.cpp +++ b/eeschema/sch_legacy_plugin.cpp @@ -3584,15 +3584,7 @@ void SCH_LEGACY_PLUGIN_CACHE::saveSymbol( LIB_PART* aSymbol, // Save data aFormatter->Print( 0, "DEF" ); - - if( value.IsVisible() ) - { - aFormatter->Print( 0, " %s", TO_UTF8( value.GetText() ) ); - } - else - { - aFormatter->Print( 0, " ~%s", TO_UTF8( value.GetText() ) ); - } + aFormatter->Print( 0, " %s", TO_UTF8( value.GetText() ) ); LIB_FIELD& reference = aSymbol->GetReferenceField();