From: dooglus Date: Thu, 11 Oct 2007 19:36:23 +0000 (+0000) Subject: Don't delete the preview renderer if it's still running. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2c7d34e9b6cbec4492f07a6a90d0682e0507bdb7;p=synfig.git Don't delete the preview renderer if it's still running. git-svn-id: http://svn.voria.com/code@910 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/preview.cpp b/synfig-studio/trunk/src/gtkmm/preview.cpp index 7c9e95e..51d434b 100644 --- a/synfig-studio/trunk/src/gtkmm/preview.cpp +++ b/synfig-studio/trunk/src/gtkmm/preview.cpp @@ -859,9 +859,10 @@ void studio::Widget_Preview::repreview() void studio::Widget_Preview::stoprender() { if(preview) - { - preview->renderer.detach(); - } + if (preview->renderer->updating) + preview->renderer->stop(); + else + preview->renderer.detach(); } void studio::Widget_Preview::eraseall()