Don't allow the user to set the 'ID' of exported canvases to be empty.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 7 Feb 2008 23:34:55 +0000 (23:34 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 7 Feb 2008 23:34:55 +0000 (23:34 +0000)
git-svn-id: http://svn.voria.com/code@1623 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 73c9425..88f60bc 100644 (file)
@@ -221,7 +221,7 @@ CanvasProperties::on_rend_desc_changed()
 void
 CanvasProperties::on_apply_pressed()
 {
-       if(entry_id.get_text()!=canvas_interface_->get_canvas()->get_id())
+       if(entry_id.get_text()!=canvas_interface_->get_canvas()->get_id() && !entry_id.get_text().empty())
                canvas_interface_->set_id(entry_id.get_text());
        if(entry_name.get_text()!=canvas_interface_->get_canvas()->get_name())
                canvas_interface_->set_name(entry_name.get_text());