Fixed an assert in 3D shape download wizard

This commit is contained in:
Maciej Suminski 2018-04-20 14:23:53 +02:00
parent 86906b05e0
commit 5fb7f5a615
1 changed files with 2 additions and 2 deletions

View File

@ -366,7 +366,7 @@ bool WIZARD_3DSHAPE_LIBS_DOWNLOADER::downloadGithubLibsFromList( wxArrayString&
wxString server = repo.GetScheme() + "://" + repo.GetServer();
// Download libs:
for( unsigned ii = 0; ii < aUrlList.GetCount(); ii++ )
for( size_t ii = 0; ii < aUrlList.GetCount(); ii++ )
{
wxString& libsrc_name = aUrlList[ii];
@ -389,7 +389,7 @@ bool WIZARD_3DSHAPE_LIBS_DOWNLOADER::downloadGithubLibsFromList( wxArrayString&
wxString libdst_name = fn.GetFullPath();
// Display the name of the library to download in the wxProgressDialog
pdlg.SetTitle( wxString::Format( wxT("%s [%d/%d]" ),
pdlg.SetTitle( wxString::Format( wxT("%s [%lu/%lu]" ),
libsrc_name.AfterLast( '/' ).GetData(),
ii + 1, aUrlList.GetCount() ) );