[Sketcher] Fix crash described in #10975

This commit is contained in:
xtemp09
2023-12-02 20:12:38 +07:00
committed by abdullahtahiriyo
parent 6e4caafc4f
commit af68c8c1dc

View File

@@ -256,13 +256,13 @@ public:
* b));
if (boost::math::isnan(startAngle) || boost::math::isnan(endAngle)) {
sketchgui->purgeHandler();
Gui::NotifyError(
sketchgui,
QT_TRANSLATE_NOOP("Notifications", "Error"),
QT_TRANSLATE_NOOP(
"Notifications",
"Cannot create arc of hyperbola from invalid angles, try again!"));
sketchgui->purgeHandler();
return false;
}