PDN: Add catch statements for Revolution perpendicular axis

This commit is contained in:
Kurt Kremitzki
2017-08-02 14:17:23 -05:00
committed by wmayer
parent 0607501360
commit 216bcbbca2

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;
}