Fix 1346746: init targets before using them during rendering in synfigstudio
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Mar 2007 07:45:41 +0000 (07:45 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 10 Mar 2007 07:45:41 +0000 (07:45 +0000)
git-svn-id: http://svn.voria.com/code@283 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 9c25a77..bc1c9cf 100644 (file)
@@ -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);