From: azv Date: Mon, 22 Jun 2020 08:07:57 +0000 (+0300) Subject: Issue #19703: SIGSEGV when activating SHAPER on a hdf X-Git-Tag: V9_5_0rc2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dab3249c35ca8cbe56775cd4331c759720fc4dc1;p=modules%2Fshaper.git Issue #19703: SIGSEGV when activating SHAPER on a hdf --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp index 4aae2edb1..37695957d 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp @@ -177,9 +177,8 @@ GeomTrsfPtr FeaturesPlugin_Translation::translationByTwoPoints() } } - GeomTrsfPtr aTrsf; + GeomTrsfPtr aTrsf(new GeomAPI_Trsf); if (aFirstPoint && aSecondPoint) { - aTrsf.reset(new GeomAPI_Trsf); aTrsf->setTranslation(aFirstPoint, aSecondPoint); } return aTrsf;