From 660e9ce3381b7c460f45c98d932619a85d622631 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 8 Dec 2021 10:23:52 +0300 Subject: [PATCH] [bos #26745] EDF 24471 - problem of dumping. Fix SIGSEGV. --- src/ModelHighAPI/ModelHighAPI_Selection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = -- 2.30.2