From b778fae190ef88486b491cb6874fd23b418e7959 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 29 Dec 2015 15:31:12 +0300 Subject: [PATCH] #1199 Fatal error when edit parameter --- src/PartSet/PartSet_OperationPrs.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index 9f52a502d..5252aac48 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -284,6 +284,17 @@ bool PartSet_OperationPrs::isSelectionAttribute(const AttributePtr& theAttribute { std::string anAttrType = theAttribute->attributeType(); + /// workaround: start + /// this is a TEMPORARY correction in order to avoid crash by parameter edit + /// which is reproduced only on Linux Debian. + /// The possible reason is an empty AIS presentation visualized in the viewer. + /// The best solution is to analize whether the feature has shapes/results and only + /// in this case visualize custom presentation and hide it as soon as they disappear. + bool isAttributeArgument = theAttribute->isArgument(); + if (!isAttributeArgument) + return false; + /// workaround: end + return anAttrType == ModelAPI_AttributeSelectionList::typeId() || anAttrType == ModelAPI_AttributeRefList::typeId() || anAttrType == ModelAPI_AttributeRefAttr::typeId() || -- 2.39.2