From e826e7a683c4ec7a4e186a3131228298d79006be Mon Sep 17 00:00:00 2001 From: blobfish Date: Mon, 4 May 2015 12:48:37 -0400 Subject: [PATCH] Part Design: Fillet: Task: cleanup upon dialog rejection --- src/Mod/PartDesign/Gui/Command.cpp | 2 ++ src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Mod/PartDesign/Gui/Command.cpp b/src/Mod/PartDesign/Gui/Command.cpp index 7b24c5175..0f85ce473 100644 --- a/src/Mod/PartDesign/Gui/Command.cpp +++ b/src/Mod/PartDesign/Gui/Command.cpp @@ -1219,6 +1219,8 @@ void makeChamferOrFillet(Gui::Command* cmd, const std::string& which) QObject::tr("Select an edge, face or body. Only one body is allowed.")); return; } + + Gui::Selection().clearSelection(); if (!selection[0].isObjectTypeOf(Part::Feature::getClassTypeId())){ QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong object type"), diff --git a/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp b/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp index 4721a4a4c..1ce79c32f 100644 --- a/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskDressUpParameters.cpp @@ -238,6 +238,7 @@ bool TaskDlgDressUpParameters::reject() // roll back the done things Gui::Command::abortCommand(); Gui::Command::doCommand(Gui::Command::Gui,"Gui.activeDocument().resetEdit()"); + Gui::Command::doCommand(Gui::Command::Doc,"App.ActiveDocument.recompute()"); // Body housekeeping PartDesign::Body* activeBody = Gui::Application::Instance->activeView()->getActiveObject(PDBODYKEY);