Fix typos, fix wronng paths to resources

This commit is contained in:
wmayer
2012-03-01 20:29:33 +01:00
parent 0b17679c97
commit 186889ba33
7 changed files with 11 additions and 9 deletions

View File

@@ -35,6 +35,7 @@
# include <TopoDS_Solid.hxx>
# include <TopoDS_Compound.hxx>
# include <TopExp_Explorer.hxx>
# include <sstream>
#endif
#include <Handle_XSControl_WorkSession.hxx>
@@ -89,9 +90,10 @@ int Part::ImportStepParts(App::Document *pcDoc, const char* Name)
TopoDS_Shape aShape;
Base::FileInfo fi(Name);
if (!fi.isReadable()) {
Base::Console().Log("ImportStep() not able to open %s!\n",Name);
throw Base::Exception("Cannot open STEP file");
if (!fi.exists()) {
std::stringstream str;
str << "File '" << Name << "' does not exist!";
throw Base::Exception(str.str().c_str());
}
if (aReader.ReadFile((Standard_CString)Name) != IFSelect_RetDone) {