From c9ad0cc10b6d9fd5fb15cb662308402a44509215 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 7 Feb 2008 23:34:55 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/gtkmm/canvasproperties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.7.4