From: dooglus Date: Thu, 7 Feb 2008 23:34:55 +0000 (+0000) Subject: Don't allow the user to set the 'ID' of exported canvases to be empty. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=c9ad0cc10b6d9fd5fb15cb662308402a44509215;p=synfig.git Don't allow the user to set the 'ID' of exported canvases to be empty. git-svn-id: http://svn.voria.com/code@1623 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasproperties.cpp b/synfig-studio/trunk/src/gtkmm/canvasproperties.cpp index 73c9425..88f60bc 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasproperties.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasproperties.cpp @@ -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());