From dab3249c35ca8cbe56775cd4331c759720fc4dc1 Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 22 Jun 2020 11:07:57 +0300 Subject: [PATCH] Issue #19703: SIGSEGV when activating SHAPER on a hdf --- src/FeaturesPlugin/FeaturesPlugin_Translation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.2