From: nds Date: Tue, 3 Oct 2017 17:41:52 +0000 (+0300) Subject: Issue #2204 Display a sketch plane - highlight only source plane, do not create wrapp... X-Git-Tag: V_2.9.0~23^2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eef71d826050b8d7fa4f0aa152798a22523a58bb;p=modules%2Fshaper.git Issue #2204 Display a sketch plane - highlight only source plane, do not create wrapping rectangle. --- diff --git a/src/PartSet/PartSet_PreviewSketchPlane.cpp b/src/PartSet/PartSet_PreviewSketchPlane.cpp index bb60cc17d..6de85edc7 100644 --- a/src/PartSet/PartSet_PreviewSketchPlane.cpp +++ b/src/PartSet/PartSet_PreviewSketchPlane.cpp @@ -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(); + myShape = std::shared_ptr(); } myPreviewIsDisplayed = false; }