From: nds Date: Fri, 6 May 2016 08:21:07 +0000 (+0300) Subject: #1485 Fatal error when select bodies for partition X-Git-Tag: V_2.3.0~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=821e155cbd90df0a2ca91c9daf586e4dd3a1c870;p=modules%2Fshaper.git #1485 Fatal error when select bodies for partition --- diff --git a/src/ModuleBase/ModuleBase_ViewerPrs.cpp b/src/ModuleBase/ModuleBase_ViewerPrs.cpp index fa417072a..f7ad01c50 100644 --- a/src/ModuleBase/ModuleBase_ViewerPrs.cpp +++ b/src/ModuleBase/ModuleBase_ViewerPrs.cpp @@ -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()) ||