From: nds Date: Tue, 29 Dec 2015 12:31:12 +0000 (+0300) Subject: #1199 Fatal error when edit parameter X-Git-Tag: V_2.1.1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b778fae190ef88486b491cb6874fd23b418e7959;p=modules%2Fshaper.git #1199 Fatal error when edit parameter --- 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() ||