mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-15 18:18:35 +05:00
Porting to OCCT6.5.1: 0022573.
This commit is contained in:
parent
4a8e780deb
commit
1eea92387d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user