From e92fbceb7e245c0cc105b75fd1a83f3c15b3e557 Mon Sep 17 00:00:00 2001 From: Uwe Date: Wed, 23 Mar 2022 01:55:01 +0100 Subject: [PATCH] [PD] Helix: catch case of touching Helix when the helix touches itself along a single helical edge one gets a cryptic error. This PR gives the user feedback what is going on. --- src/Mod/PartDesign/Gui/TaskHelixParameters.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp b/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp index 21e30da82b..dd8defbca9 100644 --- a/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskHelixParameters.cpp @@ -281,6 +281,9 @@ void TaskHelixParameters::updateStatus() else status = ""; } + // if the helix touches itself along a single helical edge we get this error + else if (status.compare("NCollection_IndexedDataMap::FindFromKey") == 0) + status = "Error: helix touches itself"; ui->labelMessage->setText(QString::fromUtf8(status.c_str())); }