]> SALOME platform Git repositories - plugins/blsurfplugin.git/commitdiff
Salome HOME
enable work w/o a study
authoreap <eap@opencascade.com>
Fri, 31 Jan 2014 13:36:46 +0000 (13:36 +0000)
committereap <eap@opencascade.com>
Fri, 31 Jan 2014 13:36:46 +0000 (13:36 +0000)
src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx

index 2ba902cb7f0f149dfba2bda64819e42fc370a46b..08b552151903f86e28285efa673df4c4ada5e51d 100644 (file)
@@ -255,7 +255,7 @@ BLSURFPlugin_BLSURF::BLSURFPlugin_BLSURF(int hypId, int studyId,
 
   myStudy = NULL;
   myStudy = aStudyMgr->GetStudyByID(_studyId);
-  if (myStudy)
+  if ( !myStudy->_is_nil() )
     MESSAGE("myStudy->StudyId() = " << myStudy->StudyId());
 
   /* Initialize the Python interpreter */