pcbnew: Avoid wxassert in message
wxstring::Printf() needs size_t cast to acceptable type or it gives an assertion in debug mode.
This commit is contained in:
@@ -318,9 +318,9 @@ bool DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange( const std::vector<D_PAD*>& c
|
||||
}
|
||||
else
|
||||
{
|
||||
msg.Printf( _( "This will change the net assigned to %d connected pads to %s.\n"
|
||||
msg.Printf( _( "This will change the net assigned to %lu connected pads to %s.\n"
|
||||
"Do you wish to continue?" ),
|
||||
changingPads.size(),
|
||||
static_cast<unsigned long>( changingPads.size() ),
|
||||
m_netSelector->GetValue() );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user