Skip to content

Commit

Permalink
Add try/catch blocks around rendering items on the canvas. For Ravel …
Browse files Browse the repository at this point in the history
…#613.
  • Loading branch information
highperformancecoder committed Jul 16, 2024
1 parent d02984e commit 73f731d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion model/canvas.cc
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,14 @@ namespace minsky
const CairoSave cs(cairo);
cairo_identity_matrix(cairo);
cairo_translate(cairo,it.x(), it.y());
it.draw(cairo);
try
{
it.draw(cairo);
}
catch (const std::exception& ex)
{
cerr << ex.what() << endl;
}
}
return false;
});
Expand Down

0 comments on commit 73f731d

Please sign in to comment.