fixes 0003804: FC becomes unusable after double-cicking on FEM elements while clip view is active

This commit is contained in:
wmayer
2019-02-15 23:30:18 +01:00
parent f053c13abf
commit 4192b88298

View File

@@ -453,6 +453,12 @@ ViewProviderPythonFeatureImp::setEdit(int ModNum)
}
}
catch (Py::Exception&) {
// If a runtime error occurred when calling setEdit
// then handle it like returning false
if (PyErr_ExceptionMatches(PyExc_RuntimeError)) {
PyErr_Clear();
return Rejected;
}
Base::PyException e; // extract the Python error text
e.ReportException();
}