]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/PartSet/PartSet_SketcherReetntrantMgr.cpp
Salome HOME
ModuleBase_ViewerPrs is wrapped into shared_ptr.
[modules/shaper.git] / src / PartSet / PartSet_SketcherReetntrantMgr.cpp
index f02f52b4ba2c59ff7d6114643966d28303c5aba0..84205e1a4f9ec5d4dcc8e6c506bc29e145e427f5 100755 (executable)
@@ -152,8 +152,9 @@ bool PartSet_SketcherReetntrantMgr::processMouseMoved(ModuleBase_IViewWindow* /*
         if (isLineFeature) {
           PartSet_WidgetPoint2D* aPoint2DWdg = dynamic_cast<PartSet_WidgetPoint2D*>(anActiveWidget);
           if (aPoint2DWdg) { // line, start point should be equal last point of the last feature line
-            QList<ModuleBase_ViewerPrs> aSelection;
-            aSelection.append(ModuleBase_ViewerPrs(aLastFeature, GeomShapePtr(), NULL));
+            QList<ModuleBase_ViewerPrsPtr> aSelection;
+            aSelection.append(std::shared_ptr<ModuleBase_ViewerPrs>(
+               new ModuleBase_ViewerPrs(aLastFeature, GeomShapePtr(), NULL)));
             aWidgetIsFilled = aPoint2DWdg->setSelection(aSelection, true);
           }
         }