From f409837d26cccd26d52a88a50ca6bd338e3b79fa Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 12 Feb 2023 16:46:08 -0500 Subject: [PATCH] Fix a stray ternary hidden under #if --- pcbnew/pad.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/pad.cpp b/pcbnew/pad.cpp index f1a113c02b..52c16007fc 100644 --- a/pcbnew/pad.cpp +++ b/pcbnew/pad.cpp @@ -1367,8 +1367,8 @@ void PAD::ViewGetLayers( int aLayers[], int& aCount ) const { wxString msg; msg.Printf( wxT( "footprint %s, pad %s: could not find valid layer for pad" ), - GetParent() ? GetParent()->GetReference() : wxT( "" ), - GetNumber().IsEmpty() ? wxT( "(unnumbered)" ) : GetNumber() ); + GetParent() ? GetParent()->GetReference() : wxString( wxT( "" ) ), + GetNumber().IsEmpty() ? wxString(wxT( "(unnumbered)" ) ) : GetNumber() ); wxLogDebug( msg ); } #endif