From: azv Date: Thu, 6 Jun 2019 11:28:40 +0000 (+0300) Subject: Fix crash while loading PlaneGCS connection plugin. X-Git-Tag: VEDF2019Lot4~114^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7243ff12341b6d0507dcde8d60713c18b0bdfb51;p=modules%2Fshaper.git Fix crash while loading PlaneGCS connection plugin. --- diff --git a/src/SketchSolver/SketchSolver_Manager.cpp b/src/SketchSolver/SketchSolver_Manager.cpp index b4c6765d5..00be4b13e 100644 --- a/src/SketchSolver/SketchSolver_Manager.cpp +++ b/src/SketchSolver/SketchSolver_Manager.cpp @@ -79,9 +79,9 @@ static void featuresOrderedByType(const std::set& theOriginalFeatures } } else { - std::shared_ptr aSketch = - std::dynamic_pointer_cast(*aFeatIter); - if (aSketch) + CompositeFeaturePtr aSketch = + std::dynamic_pointer_cast(*aFeatIter); + if (aSketch && aSketch->getKind() == SketchPlugin_Sketch::ID()) theSketch = aSketch; } }