]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1404 Random crash with Shaper: AIS presentations: correction for Operation prs.
authornds <nds@opencascade.com>
Thu, 21 Apr 2016 09:16:00 +0000 (12:16 +0300)
committernds <nds@opencascade.com>
Thu, 21 Apr 2016 09:16:00 +0000 (12:16 +0300)
src/PartSet/PartSet_OperationPrs.cpp

index 3573cb3998910274837eb4816d803ebe69a1ad49..f62f34da165c548c1a17bd7bf7bfe86b367f34b7 100755 (executable)
@@ -82,7 +82,7 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t
   NCollection_DataMap<TopoDS_Shape, Handle(AIS_InteractiveObject)> aShapeToPrsMap;
   fillShapeList(myFeatureShapes, aShapeToPrsMap);
 
-  bool aReadyToDisplay = !myShapeToPrsMap.IsEmpty();
+  bool aReadyToDisplay = !aShapeToPrsMap.IsEmpty();
   if (aReadyToDisplay) {
     myShapeToPrsMap.Clear();
     myShapeToPrsMap.Assign(aShapeToPrsMap);
@@ -113,7 +113,7 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t
   }
 
   if (!aReadyToDisplay) {
-    //Events_Error::throwException("An empty AIS presentation: PartSet_OperationPrs");
+    Events_Error::throwException("An empty AIS presentation: PartSet_OperationPrs");
     //std::shared_ptr<Events_Message> aMsg = std::shared_ptr<Events_Message>(
     //            new Events_Message(Events_Loop::eventByName(EVENT_EMPTY_OPERATION_PRESENTATION)));
     //Events_Loop::loop()->send(aMsg);