Commit cab41362 authored by twanvl's avatar twanvl

Added try/catch so script errors during rendering don't result in crashes

parent 05364bab
...@@ -47,7 +47,11 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) { ...@@ -47,7 +47,11 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) {
// draw values // draw values
FOR_EACH(v, viewers) { // draw low z index fields first FOR_EACH(v, viewers) { // draw low z index fields first
if (v->getStyle()->visible) {// visible if (v->getStyle()->visible) {// visible
drawViewer(dc, *v); try {
drawViewer(dc, *v);
} catch (const Error& e) {
handle_error(e, false, false);
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment