From 60e103c9625789e49ba4977c1fb05910adb855d2 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 17 Oct 2011 08:15:25 +0000 Subject: [PATCH] + fix crash in ViewProviderPad::onDelete git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5032 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d --- src/Mod/PartDesign/Gui/ViewProviderPad.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/PartDesign/Gui/ViewProviderPad.cpp b/src/Mod/PartDesign/Gui/ViewProviderPad.cpp index 4b8ea53d3..8c6dbf34c 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderPad.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderPad.cpp @@ -119,15 +119,15 @@ bool ViewProviderPad::onDelete(const std::vector &) PartDesign::Pad* pcPad = static_cast(getObject()); Sketcher::SketchObject *pcSketch; App::DocumentObject *pcSupport; - if(pcPad->Sketch.getValue() ){ + if (pcPad->Sketch.getValue()){ pcSketch = static_cast(pcPad->Sketch.getValue()); pcSupport = pcSketch->Support.getValue(); } // if abort command deleted the object the support is visible again - if(pcSketch && Gui::Application::Instance->getViewProvider(pcSketch)) + if (pcSketch && Gui::Application::Instance->getViewProvider(pcSketch)) Gui::Application::Instance->getViewProvider(pcSketch)->show(); - if(pcPad && Gui::Application::Instance->getViewProvider(pcSupport)) + if (pcSupport && Gui::Application::Instance->getViewProvider(pcSupport)) Gui::Application::Instance->getViewProvider(pcSupport)->show(); return true;