Don't delete the preview renderer if it's still running.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 11 Oct 2007 19:36:23 +0000 (19:36 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 11 Oct 2007 19:36:23 +0000 (19:36 +0000)
git-svn-id: http://svn.voria.com/code@910 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/preview.cpp

index 7c9e95e..51d434b 100644 (file)
@@ -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()