Don't crash if the user clicks 'halt render' when the render has already been stopped.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 25 Oct 2007 00:11:00 +0000 (00:11 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 25 Oct 2007 00:11:00 +0000 (00:11 +0000)
git-svn-id: http://svn.voria.com/code@967 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 51d434b..78f8749 100644 (file)
@@ -858,6 +858,10 @@ void studio::Widget_Preview::repreview()
 
 void studio::Widget_Preview::stoprender()
 {
+       // don't crash if the render has already been stopped
+       if (!preview->renderer)
+               return;
+
        if(preview)
                if (preview->renderer->updating)
                        preview->renderer->stop();