From: dooglus Date: Mon, 17 Sep 2007 11:50:46 +0000 (+0000) Subject: Don't accept an empty input when setting a paste canvas' layer's 'canvas' parameter... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=00c1361cfdb2b3cae66ec796fca6ce39f0c75871;p=synfig.git Don't accept an empty input when setting a paste canvas' layer's 'canvas' parameter using 'other...'. Doing so causes an infinite loop, much like in bug #1796110. git-svn-id: http://svn.voria.com/code@687 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/widget_canvaschooser.cpp b/synfig-studio/trunk/src/gtkmm/widget_canvaschooser.cpp index 0df22a7..883c9e3 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_canvaschooser.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_canvaschooser.cpp @@ -137,6 +137,13 @@ Widget_CanvasChooser::chooser_menu() return; } + if (canvas_name == "") + { + App::dialog_error_blocking(_("Error"),_("No canvas name was specified")); + set_value_(canvas); + return; + } + Canvas::Handle new_canvas; try {