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);
}
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);