]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #567: let the land covers to be recognized as reference objects of a cc zone
authormzn <mzn@opencascade.com>
Mon, 22 Jun 2015 08:54:29 +0000 (11:54 +0300)
committermzn <mzn@opencascade.com>
Mon, 22 Jun 2015 08:54:29 +0000 (11:54 +0300)
src/HYDROData/HYDROData_Region.cxx
src/HYDROGUI/HYDROGUI_Zone.cxx

index 194d80e6344902802068f0393603bf1820db5079..20a86e42665435658222b149d6832e021bcf6c0c 100644 (file)
@@ -174,8 +174,7 @@ Handle(HYDROData_Zone) HYDROData_Region::addNewZone( const Handle(HYDROData_Docu
   for ( int i = 0, n = theRefObjects.length(); i < n; ++i )
   {
     const QString& anObjName = theRefObjects.at( i );
-    Handle(HYDROData_Object) aRefObject = 
-      Handle(HYDROData_Object)::DownCast( theDoc->FindObjectByName( anObjName ) );
+    Handle(HYDROData_Entity) aRefObject = theDoc->FindObjectByName( anObjName );
     if ( aRefObject.IsNull() )
       continue;
 
index 8561008c5ae563fda77aa41710130b650839e1c2..469695cf7525571c720343917491cc51119d3867 100644 (file)
@@ -66,8 +66,8 @@ QString HYDROGUI_Zone::getRefObjectNames() const
     HYDROData_SequenceOfObjects::Iterator anIter( aSeq );
     for ( ; anIter.More(); anIter.Next() )
     {
-      Handle(HYDROData_Object) aRefGeomObj =
-        Handle(HYDROData_Object)::DownCast( anIter.Value() );
+      Handle(HYDROData_Entity) aRefGeomObj =
+        Handle(HYDROData_Entity)::DownCast( anIter.Value() );
       if ( !aRefGeomObj.IsNull() )
       {
         // Get Ref.Object name