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