From 74ffe9f0272371ded05a45f1e16ff7acd7a10093 Mon Sep 17 00:00:00 2001 From: pabs Date: Sat, 10 Mar 2007 07:45:41 +0000 Subject: [PATCH] Fix 1346746: init targets before using them during rendering in synfigstudio git-svn-id: http://svn.voria.com/code@283 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/render.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/render.cpp b/synfig-studio/trunk/src/gtkmm/render.cpp index 9c25a77..bc1c9cf 100644 --- a/synfig-studio/trunk/src/gtkmm/render.cpp +++ b/synfig-studio/trunk/src/gtkmm/render.cpp @@ -270,6 +270,10 @@ RenderSettings::on_render_pressed() target->set_rend_desc(&rend_desc); target->set_quality((int)adjustment_quality.get_value()); + if( !target->init() ){ + canvas_interface_->get_ui_interface()->error(_("Target initialisation failure")); + return; + } canvas_interface_->get_ui_interface()->task(_("Rendering ")+filename); -- 2.7.4