From 2c7d34e9b6cbec4492f07a6a90d0682e0507bdb7 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 11 Oct 2007 19:36:23 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/gtkmm/preview.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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() -- 2.7.4