From: dmv Date: Thu, 29 Oct 2009 14:21:46 +0000 (+0000) Subject: IPAL21444 Problem of Dumps study after reading IGES file X-Git-Tag: RELIQUAT_5x_30102009 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5878f0928c02658390ee545e7139d1843ce52f1c;p=modules%2Fgeom.git IPAL21444 Problem of Dumps study after reading IGES file --- diff --git a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx index 102ebba74..884c457cf 100644 --- a/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IInsertOperations.cxx @@ -240,8 +240,10 @@ Handle(GEOM_Object) GEOMImpl_IInsertOperations::Import } //Make a Python command - GEOM::TPythonDump(aFunction) << result << " = geompy.Import(\"" - << theFileName.ToCString() << "\", \"" << theFormatName.ToCString() << "\")"; + if( theFormatName != "IGES_UNIT" ) { + GEOM::TPythonDump(aFunction) << result << " = geompy.Import(\"" + << theFileName.ToCString() << "\", \"" << theFormatName.ToCString() << "\")"; + } SetErrorCode(OK);