PDN: Add catch statements for Revolution perpendicular axis

This commit is contained in:
Kurt Kremitzki
2017-08-12 14:43:45 +02:00
committed by wmayer
parent fdf66b3e88
commit d29bed15d1
+6 -1
View File
@@ -183,7 +183,12 @@ App::DocumentObjectExecReturn *Revolution::execute(void)
bool Revolution::suggestReversed(void)
{
updateAxis();
try {
updateAxis();
} catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());
}
return ProfileBased::getReversedAngle(Base.getValue(), Axis.getValue()) < 0.0;
}