From 658a5cf7ed2f10272d80104f5064e529cd12b690 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 4 Feb 2021 11:14:46 +0100 Subject: [PATCH] SCH_PIN::GetMsgPanelInfo(): fix missing initialization of Pin Number string The displayed string was a old value, not related to the Pin Nummber Fixes #7414 https://gitlab.com/kicad/code/kicad/issues/7414 --- eeschema/sch_pin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/sch_pin.cpp b/eeschema/sch_pin.cpp index eb1d45d349..6422455ccb 100644 --- a/eeschema/sch_pin.cpp +++ b/eeschema/sch_pin.cpp @@ -175,6 +175,7 @@ void SCH_PIN::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, MSG_PANEL_ITEMS& aList ) aList.push_back( MSG_PANEL_ITEM( _( "Converted" ), msg ) ); aList.push_back( MSG_PANEL_ITEM( _( "Name" ), GetName() ) ); + msg = GetNumber().IsEmpty() ? wxT( "?" ) : GetNumber(); aList.push_back( MSG_PANEL_ITEM( _( "Number" ), msg ) ); aList.push_back( MSG_PANEL_ITEM( _( "Type" ), ElectricalPinTypeGetText( GetType() ) ) );