From 3b27def2285492ad2a0851fa61c08617877e9268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Tr=C3=B6ger?= Date: Sat, 12 Mar 2016 10:09:56 +0100 Subject: [PATCH] PartDesign: prevent crash on delete and add body --- src/Mod/PartDesign/Gui/ViewProviderBody.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp index 4399e8663..0a85130c9 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderBody.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderBody.cpp @@ -267,7 +267,9 @@ void ViewProviderBody::updateData(const App::Property* prop) void ViewProviderBody::slotChangedObjectApp ( const App::DocumentObject& obj, const App::Property& prop ) { - if (!obj.isDerivedFrom ( Part::Feature::getClassTypeId () ) ) { // we are intrested only in Part::Features + + if (!obj.isDerivedFrom ( Part::Feature::getClassTypeId () ) || + obj.isDerivedFrom ( Part::BodyBase::getClassTypeId () ) ) { // we are intrested only in Part::Features and not in bodies return; }