From 6edcc9d38fef54523d77d9a98851c89d67ca5b3e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 22 Aug 2020 23:51:54 +0100 Subject: [PATCH] Resolve textvars in Pad Settings dialog. --- pcbnew/dialogs/dialog_pad_properties.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pcbnew/dialogs/dialog_pad_properties.cpp b/pcbnew/dialogs/dialog_pad_properties.cpp index f9f3787885..459ace81ba 100644 --- a/pcbnew/dialogs/dialog_pad_properties.cpp +++ b/pcbnew/dialogs/dialog_pad_properties.cpp @@ -465,9 +465,13 @@ void DIALOG_PAD_PROPERTIES::initValues() if( footprint ) { - wxString side = footprint->IsFlipped() ? _( "back side (mirrored)" ) : _( "front side" ); - msg1.Printf( _("Footprint %s (%s),"), footprint->GetReference(), footprint->GetValue() ); - msg2.Printf( _("%s, rotated %.1f deg"), side, footprint->GetOrientation() / 10.0 ); + msg1.Printf( _("Footprint %s (%s),"), + footprint->Reference().GetShownText(), + footprint->Value().GetShownText() ); + msg2.Printf( _("%s, rotated %.1f deg"), + footprint->IsFlipped() ? _( "back side (mirrored)" ) + : _( "front side" ), + footprint->GetOrientation() / 10.0 ); } m_parentInfoLine1->SetLabel( msg1 );