]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1485 Fatal error when select bodies for partition
authornds <nds@opencascade.com>
Fri, 6 May 2016 08:21:07 +0000 (11:21 +0300)
committernds <nds@opencascade.com>
Fri, 6 May 2016 08:21:07 +0000 (11:21 +0300)
src/ModuleBase/ModuleBase_ViewerPrs.cpp

index fa417072a0223c706263cd696395c43af958f7bf..f7ad01c50dbfc057460480de68aaab5145c54ffd 100644 (file)
@@ -51,10 +51,10 @@ bool ModuleBase_ViewerPrs::isEqual(ModuleBase_ViewerPrs* thePrs) const
     // ComputeSelection of ModuleBase_ResultPrs. A new owner is created there for each subsolid
     // and set in the sub-solid AIS. ViewerPrs of these fictive owners are accepted as equal
     // as they use the same shape and result(of compsolid)
-    Handle(ModuleBase_BRepOwner) aCSolidOwner1 = Handle(ModuleBase_BRepOwner)::DownCast(myOwner);
-    Handle(ModuleBase_BRepOwner) aCSolidOwner2 = Handle(ModuleBase_BRepOwner)::DownCast(thePrs->owner());
+    Handle(StdSelect_BRepOwner) aCSolidOwner1 = Handle(StdSelect_BRepOwner)::DownCast(myOwner);
+    Handle(StdSelect_BRepOwner) aCSolidOwner2 = Handle(StdSelect_BRepOwner)::DownCast(thePrs->owner());
     isEqualIO = !aCSolidOwner1.IsNull() && !aCSolidOwner2.IsNull();
-    if (!aCSolidOwner1.IsNull() && !aCSolidOwner1.IsNull())
+    if (!aCSolidOwner1.IsNull() && !aCSolidOwner2.IsNull())
       isEqualOwner = (aCSolidOwner1->Shape().IsNull() && aCSolidOwner2->Shape().IsNull()) ||
                       aCSolidOwner1->Shape().IsEqual(aCSolidOwner2->Shape());
   }
@@ -92,8 +92,8 @@ bool ModuleBase_ViewerPrs::operator==(const ModuleBase_ViewerPrs& thePrs)
     // ComputeSelection of ModuleBase_ResultPrs. A new owner is created there for each subsolid
     // and set in the sub-solid AIS. ViewerPrs of these fictive owners are accepted as equal
     // as they use the same shape and result(of compsolid)
-    Handle(ModuleBase_BRepOwner) aCSolidOwner1 = Handle(ModuleBase_BRepOwner)::DownCast(myOwner);
-    Handle(ModuleBase_BRepOwner) aCSolidOwner2 = Handle(ModuleBase_BRepOwner)::DownCast(thePrs.owner());
+    Handle(StdSelect_BRepOwner) aCSolidOwner1 = Handle(StdSelect_BRepOwner)::DownCast(myOwner);
+    Handle(StdSelect_BRepOwner) aCSolidOwner2 = Handle(StdSelect_BRepOwner)::DownCast(thePrs.owner());
     isEqualIO = !aCSolidOwner1.IsNull() && !aCSolidOwner2.IsNull();
     if (!aCSolidOwner1.IsNull() && !aCSolidOwner1.IsNull())
       isEqualOwner = (aCSolidOwner1->Shape().IsNull() && aCSolidOwner2->Shape().IsNull()) ||