Gerbview: fix formatting assert

In GERBVIEW_FRAME::loadListOfGerberAndDrillFiles, the variables
ii and aFilenameList.GetCount() are unsigned and size_t, respectively.

This means the format string must be %u and %lu, respectively.
This commit is contained in:
John Beard 2019-11-22 11:43:27 +08:00
parent 087a90cf99
commit 44a6a61ff9
1 changed files with 2 additions and 2 deletions

View File

@ -298,12 +298,12 @@ bool GERBVIEW_FRAME::loadListOfGerberAndDrillFiles( const wxString& aPath,
progress = std::make_unique<WX_PROGRESS_REPORTER>( this,
_( "Loading Gerber files..." ), 1, false );
progress->SetMaxProgress( aFilenameList.GetCount() - 1 );
progress->Report( wxString::Format( _("Loading %d/%d %s" ), ii+1,
progress->Report( wxString::Format( _("Loading %u/%lu %s" ), ii+1,
aFilenameList.GetCount(), m_lastFileName ) );
}
else if( progress )
{
progress->Report( wxString::Format( _("Loading %d/%d %s" ), ii+1,
progress->Report( wxString::Format( _("Loading %u/%lu %s" ), ii+1,
aFilenameList.GetCount(), m_lastFileName ) );
progress->KeepRefreshing();
}