diff --git a/src/IGESImport/IGESImport.cxx b/src/IGESImport/IGESImport.cxx index cff70de18..43f0e3870 100644 --- a/src/IGESImport/IGESImport.cxx +++ b/src/IGESImport/IGESImport.cxx @@ -101,14 +101,18 @@ IGESIMPORT_EXPORT if (!aModel.IsNull()) { Handle(TCollection_HAsciiString) aUnitName = aModel->GlobalSection().UnitName(); - //cout<<"aUnitName = "<ToCString()<String()=="CM") { - P = gp_Pnt(0.01,0.0,0.0); + if (!aUnitName.IsNull()) { + //cout<<"aUnitName = "<ToCString()<String()=="CM") { + P = gp_Pnt(0.01,0.0,0.0); + } } + //else + // cout << "aUnitName is NULL !!" << endl; } BRep_Builder B; TopoDS_Vertex V;