From: jfa Date: Wed, 8 Dec 2021 07:23:52 +0000 (+0300) Subject: [bos #26745] EDF 24471 - problem of dumping. Fix SIGSEGV. X-Git-Tag: V9_9_0a1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=660e9ce3381b7c460f45c98d932619a85d622631;p=modules%2Fshaper.git [bos #26745] EDF 24471 - problem of dumping. Fix SIGSEGV. --- diff --git a/src/ModelHighAPI/ModelHighAPI_Selection.cpp b/src/ModelHighAPI/ModelHighAPI_Selection.cpp index 3b45898cd..6c8025738 100644 --- a/src/ModelHighAPI/ModelHighAPI_Selection.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Selection.cpp @@ -235,7 +235,7 @@ void ModelHighAPI_Selection::setColor(int theRed, int theGreen, int theBlue, boo void ModelHighAPI_Selection::setDeflection(double theValue) { - if (myVariantType != VT_ResultSubShapePair) + if (myVariantType != VT_ResultSubShapePair || !myResultSubShapePair.first.get()) return; AttributeDoublePtr aDeflectionAttr = @@ -247,7 +247,7 @@ void ModelHighAPI_Selection::setDeflection(double theValue) // LCOV_EXCL_START void ModelHighAPI_Selection::setTransparency(double theValue) { - if (myVariantType != VT_ResultSubShapePair) + if (myVariantType != VT_ResultSubShapePair || !myResultSubShapePair.first.get()) return; AttributeDoublePtr aTransparencyAttr =