]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2204 Display a sketch plane - highlight only source plane, do not create wrapp...
authornds <nds@opencascade.com>
Tue, 3 Oct 2017 17:41:52 +0000 (20:41 +0300)
committernds <nds@opencascade.com>
Tue, 3 Oct 2017 17:41:52 +0000 (20:41 +0300)
src/PartSet/PartSet_PreviewSketchPlane.cpp

index bb60cc17da1c41587e76a9db972bdfa11a762bbe..6de85edc74977390ffd94ea3f4230979c65ea3b8 100644 (file)
@@ -52,8 +52,8 @@ void PartSet_PreviewSketchPlane::eraseSketchPlane(ModuleBase_IWorkshop* theWorks
     XGUI_Displayer* aDisp = XGUI_Tools::workshop(theWorkshop)->displayer();
     aDisp->eraseAIS(myPlane, false);
     if (isClearPlane) {
-      myPlane = NULL;
-      myShape = NULL;
+      myPlane = std::shared_ptr<GeomAPI_AISObject>();
+      myShape = std::shared_ptr<GeomAPI_Shape>();
     }
     myPreviewIsDisplayed = false;
   }