From 644c277fbb62152b4944be90604218b264e5218c Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Wed, 12 Feb 2020 16:47:32 +0800 Subject: [PATCH] Part: fix Sweep path selection Fixes #0004255 --- src/Mod/Part/Gui/TaskSweep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Part/Gui/TaskSweep.cpp b/src/Mod/Part/Gui/TaskSweep.cpp index 28bc3c00f7..f3f4fd0903 100644 --- a/src/Mod/Part/Gui/TaskSweep.cpp +++ b/src/Mod/Part/Gui/TaskSweep.cpp @@ -84,7 +84,7 @@ public: bool allow(App::Document* /*pDoc*/, App::DocumentObject*pObj, const char*sSubName) { if (pObj->getTypeId().isDerivedFrom(Part::Feature::getClassTypeId())) { - if (!sSubName) { + if (!sSubName || sSubName[0] == '\0') { // If selecting again the same edge the passed sub-element is empty. If the whole // shape is an edge or wire we can use it completely. const TopoDS_Shape& shape = static_cast(pObj)->Shape.getValue();