X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fdock_navigator.cpp;h=c558960bff46ea9d1be22d48b94c09d7789a2e49;hb=806f63e7b631aff78434eda0ee3c23b168dcd648;hp=d0717bba368f7c6153fbd1e5315ffb394a3314c2;hpb=db49fa613552bf53c58d019ce204b84234ac27f7;p=synfig.git 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())));