[Sketcher] Fix crash described in #10975
This commit is contained in:
committed by
abdullahtahiriyo
parent
6e4caafc4f
commit
af68c8c1dc
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user