Gerbview, read zip archive: do not generate a error message for directory names.

A directory is not a file, and is now just skipped.
From master branch
This commit is contained in:
jean-pierre charras 2022-11-22 17:08:18 +01:00
parent d9a1703bcc
commit c3b9c65fd6
1 changed files with 3 additions and 0 deletions

View File

@ -506,6 +506,9 @@ bool GERBVIEW_FRAME::unarchiveFiles( const wxString& aFullFileName, REPORTER* aR
while( ( entry = zipArchive.GetNextEntry() ) )
{
if( entry->IsDir() )
continue;
wxString fname = entry->GetName();
wxFileName uzfn = fname;
wxString curr_ext = uzfn.GetExt().Lower();