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