Fixed an assert in 3D shape download wizard
This commit is contained in:
parent
86906b05e0
commit
5fb7f5a615
|
@ -366,7 +366,7 @@ bool WIZARD_3DSHAPE_LIBS_DOWNLOADER::downloadGithubLibsFromList( wxArrayString&
|
||||||
wxString server = repo.GetScheme() + "://" + repo.GetServer();
|
wxString server = repo.GetScheme() + "://" + repo.GetServer();
|
||||||
|
|
||||||
// Download libs:
|
// Download libs:
|
||||||
for( unsigned ii = 0; ii < aUrlList.GetCount(); ii++ )
|
for( size_t ii = 0; ii < aUrlList.GetCount(); ii++ )
|
||||||
{
|
{
|
||||||
wxString& libsrc_name = aUrlList[ii];
|
wxString& libsrc_name = aUrlList[ii];
|
||||||
|
|
||||||
|
@ -389,7 +389,7 @@ bool WIZARD_3DSHAPE_LIBS_DOWNLOADER::downloadGithubLibsFromList( wxArrayString&
|
||||||
wxString libdst_name = fn.GetFullPath();
|
wxString libdst_name = fn.GetFullPath();
|
||||||
|
|
||||||
// Display the name of the library to download in the wxProgressDialog
|
// 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(),
|
libsrc_name.AfterLast( '/' ).GetData(),
|
||||||
ii + 1, aUrlList.GetCount() ) );
|
ii + 1, aUrlList.GetCount() ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue