Porting to OCCT6.5.1: 0022573.

This commit is contained in:
jfa 2011-09-20 10:16:21 +00:00
parent 4a8e780deb
commit 1eea92387d

View 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 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;
}