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;