author | Francesco Abbate <francesco.bbt@gmail.com> | 2010年09月01日 22:33:41 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2010年09月01日 22:33:41 +0200 |
commit | c90c96810389377d6f89d6709bfdcf68ecf42e94 (patch) | |
tree | 2059462db8a3772d8ae35270981ad23ec304db92 /agg-plot/window.cpp | |
parent | 4806d8bdb82b3c6a221caa3d73d7541c5721a530 (diff) | |
download | gsl-shell-c90c96810389377d6f89d6709bfdcf68ecf42e94.tar.gz |
-rw-r--r-- | agg-plot/window.cpp | 6 |
diff --git a/agg-plot/window.cpp b/agg-plot/window.cpp index 00372b65..b107af10 100644 --- a/agg-plot/window.cpp +++ b/agg-plot/window.cpp @@ -130,7 +130,11 @@ void window::draw_slot_by_ref(window::ref& ref, bool dirty) agg::rect_base<int> r = rect_of_slot_matrix(mtx); m_canvas->clear_box(r); AGG_LOCK(); - ref.plot->draw(*m_canvas, mtx); + try + { + ref.plot->draw(*m_canvas, mtx); + } + catch (std::bad_alloc&) { } AGG_UNLOCK(); platform_support_update_region (this, r); } |