Fix assertions in progress bar on MSW64
This commit is contained in:
parent
856decc29b
commit
0748ec16ed
|
@ -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 %u/%lu %s" ), ii+1,
|
||||
progress->Report( wxString::Format( _("Loading %u/%zu %s" ), ii+1,
|
||||
aFilenameList.GetCount(), m_lastFileName ) );
|
||||
}
|
||||
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 ) );
|
||||
progress->KeepRefreshing();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue