Fix assertions in progress bar on MSW64

This commit is contained in:
Jon Evans 2019-12-23 13:05:10 -05:00
parent 856decc29b
commit 0748ec16ed
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, progress = std::make_unique<WX_PROGRESS_REPORTER>( this,
_( "Loading Gerber files..." ), 1, false ); _( "Loading Gerber files..." ), 1, false );
progress->SetMaxProgress( aFilenameList.GetCount() - 1 ); progress->SetMaxProgress( aFilenameList.GetCount() - 1 );
progress->Report( wxString::Format( _("Loading %u/%lu %s" ), ii+1, progress->Report( wxString::Format( _("Loading %u/%zu %s" ), ii+1,
aFilenameList.GetCount(), m_lastFileName ) ); aFilenameList.GetCount(), m_lastFileName ) );
} }
else if( progress ) else if( progress )
{ {
progress->Report( wxString::Format( _("Loading %u/%lu %s" ), ii+1, progress->Report( wxString::Format( _("Loading %u/%zu %s" ), ii+1,
aFilenameList.GetCount(), m_lastFileName ) ); aFilenameList.GetCount(), m_lastFileName ) );
progress->KeepRefreshing(); progress->KeepRefreshing();
} }