]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Porting to OCCT6.5.1: 0022573.
authorjfa <jfa@opencascade.com>
Tue, 20 Sep 2011 10:16:21 +0000 (10:16 +0000)
committerjfa <jfa@opencascade.com>
Tue, 20 Sep 2011 10:16:21 +0000 (10:16 +0000)
src/GEOM/GEOM_Engine.cxx

index 9bb45f6f357b52e7fc2862b8435dba2d1b96a8b4..fcfbf3293be2cfd8b8ec14da3a53de1f0cbcd72c 100644 (file)
@@ -522,7 +522,11 @@ bool GEOM_Engine::Save(int theDocID, char* theFileName)
 bool GEOM_Engine::Load(int theDocID, char* theFileName)
 {
   Handle(TDocStd_Document) aDoc;
-  if(_OCAFApp->Open(theFileName, aDoc) != CDF_RS_OK) {
+#if OCC_VERSION_LARGE > 0x06050100 // For OCCT6.5.2 and higher
+  if (_OCAFApp->Open(theFileName, aDoc) != PCDM_RS_OK) {
+#else
+  if (_OCAFApp->Open(theFileName, aDoc) != CDF_RS_OK) {
+#endif
     return false;
   }