Fix merge error in stpz import

Don't exit early when loading files.  Also adds a busy cursor as STEP
loading can take a while.
This commit is contained in:
Seth Hillbrand 2021-03-02 10:34:28 -08:00
parent f90164f7cf
commit 01426d914a
1 changed files with 4 additions and 1 deletions

View File

@ -32,6 +32,7 @@
#include <wx/filename.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <wx/utils.h>
#include <wx/wfstream.h>
#include <wx/zipstrm.h>
@ -469,6 +470,7 @@ bool readSTEPZ( Handle(TDocStd_Document)& m_doc, const char* aFileName )
outFile.SetExt( "STEP" );
wxFileOffset size = ifile.GetLength();
wxBusyCursor busycursor;
if( size == wxInvalidOffset )
return false;
@ -514,7 +516,8 @@ bool readSTEPZ( Handle(TDocStd_Document)& m_doc, const char* aFileName )
delete[] buffer;
ofile.Close();
return success;
if( !success )
return false;
}
bool retval = readSTEP( m_doc, outFile.GetFullPath().mb_str() );