]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix error on loading SHAPER within SALOME on Linux.
authorazv <azv@opencascade.com>
Sun, 15 Sep 2019 11:43:58 +0000 (14:43 +0300)
committerazv <azv@opencascade.com>
Sun, 15 Sep 2019 11:43:58 +0000 (14:43 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index 9807b344cce755545b598ce0a8ba7f5575dd112d..540436a78474248446586b31394640dc34f61757 100644 (file)
@@ -2123,8 +2123,8 @@ void PartSet_Fitter::fitAll(Handle(V3d_View) theView)
       if (aRes->isDisplayed()) {
         FeaturePtr aFeature = ModelAPI_Feature::feature(aRes);
         if (aFeature.get()) {
-          std::shared_ptr<SketchPlugin_SketchEntity> aSPFeature =
-            std::dynamic_pointer_cast<SketchPlugin_SketchEntity>(aFeature);
+          std::shared_ptr<SketchPlugin_Feature> aSPFeature =
+            std::dynamic_pointer_cast<SketchPlugin_Feature>(aFeature);
           if (aSPFeature.get()) {
             bool isAxiliary =
               aSPFeature->boolean(SketchPlugin_SketchEntity::AUXILIARY_ID())->value();