]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #19703: SIGSEGV when activating SHAPER on a hdf
authorazv <artem.zhidkov@opencascade.com>
Mon, 22 Jun 2020 08:07:57 +0000 (11:07 +0300)
committerazv <artem.zhidkov@opencascade.com>
Mon, 22 Jun 2020 08:07:57 +0000 (11:07 +0300)
src/FeaturesPlugin/FeaturesPlugin_Translation.cpp

index 4aae2edb186d0bc299e08475056683af57bbb0f7..37695957df3b59afc4133ca34f8c025ccc7895cd 100644 (file)
@@ -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;