From: pabs Date: Sat, 10 Mar 2007 07:45:41 +0000 (+0000) Subject: Fix 1346746: init targets before using them during rendering in synfigstudio X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=74ffe9f0272371ded05a45f1e16ff7acd7a10093;p=synfig.git 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 --- 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);