From: dooglus Date: Thu, 25 Oct 2007 00:11:00 +0000 (+0000) Subject: Don't crash if the user clicks 'halt render' when the render has already been stopped. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=08a26403c9dd95f1ea17b28aa44f89fe5110f8a9;p=synfig.git Don't crash if the user clicks 'halt render' when the render has already been stopped. git-svn-id: http://svn.voria.com/code@967 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/preview.cpp b/synfig-studio/trunk/src/gtkmm/preview.cpp index 51d434b..78f8749 100644 --- a/synfig-studio/trunk/src/gtkmm/preview.cpp +++ b/synfig-studio/trunk/src/gtkmm/preview.cpp @@ -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();