From c3a7f7ac4d1f045c134877baa3b84a4b2aa34287 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 12 Oct 2007 17:29:38 +0000 Subject: [PATCH] Fix a crash when running single-threaded and dragging the time slider. git-svn-id: http://svn.voria.com/code@916 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/dock_navigator.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp b/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp index d0717bb..c558960 100644 --- a/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp +++ b/synfig-studio/trunk/src/gtkmm/dock_navigator.cpp @@ -258,6 +258,11 @@ static double zoom_to_unit(double f) bool studio::Widget_NavView::on_expose_draw(GdkEventExpose */*exp*/) { + // don't redraw if the previous redraw is still running single-threaded + // or we end up destroying the renderer that's rendering it + if (App::single_threaded && renderer && renderer->updating) + return false; + //print out the zoom //HACK kind of... //zoom_print.set_text(strprintf("%.1f%%",100*unit_to_zoom(adj_zoom.get_value()))); -- 2.7.4