From 6d72e0c5f9ced8a176fb7a4de0e6b23878f5a637 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 21 Apr 2016 12:16:00 +0300 Subject: [PATCH] #1404 Random crash with Shaper: AIS presentations: correction for Operation prs. --- src/PartSet/PartSet_OperationPrs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index 3573cb399..f62f34da1 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -82,7 +82,7 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t NCollection_DataMap 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 aMsg = std::shared_ptr( // new Events_Message(Events_Loop::eventByName(EVENT_EMPTY_OPERATION_PRESENTATION))); //Events_Loop::loop()->send(aMsg); -- 2.39.2