From 3792f38191988eb2d397a97cc5fe9313832e1922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Tue, 10 Nov 2015 06:57:02 +0100 Subject: [PATCH] Fix shutdown crash with primitives in the document and cleanup the header --- src/Mod/PartDesign/Gui/ViewProviderDatumCS.cpp | 1 - src/Mod/PartDesign/Gui/ViewProviderPrimitive.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderDatumCS.cpp b/src/Mod/PartDesign/Gui/ViewProviderDatumCS.cpp index e28290d24..594c6803c 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderDatumCS.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderDatumCS.cpp @@ -83,7 +83,6 @@ void ViewProviderDatumCoordinateSystem::attach ( App::DocumentObject *obj ) { getShapeRoot ()->addChild(binding); getShapeRoot ()->addChild(material); - coord = new SoCoordinate3(); coord->point.setNum(4); ViewProviderDatum::setExtents ( defaultBoundBox () ); diff --git a/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h b/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h index 807be0661..fd7bc83b5 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h +++ b/src/Mod/PartDesign/Gui/ViewProviderPrimitive.h @@ -52,10 +52,7 @@ protected: void updateAddSubShapeIndicator(); std::string displayMode; - SoSeparator* previewShape; PartGui::SoBrepFaceSet* previewFaceSet; - SoCoordinate3* previewCoords; - SoNormal* previewNorm; }; } // namespace PartDesignGui