From: eap Date: Fri, 31 Jan 2014 13:36:46 +0000 (+0000) Subject: enable work w/o a study X-Git-Tag: V7_4_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d6156f1061a68357b24fe50cb469676c75bad414;p=plugins%2Fblsurfplugin.git enable work w/o a study --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx index 2ba902c..08b5521 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.cxx @@ -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 */