Salome HOME
Win32 compatibility
authorana <ana@opencascade.com>
Wed, 6 Aug 2014 14:35:30 +0000 (18:35 +0400)
committerana <ana@opencascade.com>
Wed, 6 Aug 2014 14:35:30 +0000 (18:35 +0400)
src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx

index f59e470a4192094dabebd06799642acfb65e6194..7eae6dac6190045a1e05b14f92016a9a99afca29 100644 (file)
@@ -1292,8 +1292,8 @@ void BLSURFPlugin_Hypothesis_i::UnsetAttractorGeom(GEOM::GEOM_Object_ptr theFace
   //   if (!theSFace->_is_nil())
   //     theFaceEntry = theSFace->GetID();
   // }
-  if ( !theFaceEntry.in() || !theFaceEntry[0] ||
-       !theAttrEntry.in() || !theAttrEntry[0] )
+  if ( !theFaceEntry.in() || !theFaceEntry.in()[0] ||
+       !theAttrEntry.in() || !theAttrEntry.in()[0] )
     THROW_SALOME_CORBA_EXCEPTION( "Geom object is not published in study" ,SALOME::BAD_PARAM );
   
   MESSAGE("IDL : GetName : " << theFace->GetName());