]> 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)
committermpv <mpv@opencascade.com>
Wed, 18 Sep 2019 11:12:55 +0000 (14:12 +0300)
src/PartSet/PartSet_SketcherMgr.cpp

index bdc192f3abdcb2bf62f41554e181eb62d0c448e2..c773710e991d71a3be4069d04e6b1f00687b08f1 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();