From 00c1361cfdb2b3cae66ec796fca6ce39f0c75871 Mon Sep 17 00:00:00 2001 From: dooglus Date: Mon, 17 Sep 2007 11:50:46 +0000 Subject: [PATCH] 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 --- synfig-studio/trunk/src/gtkmm/widget_canvaschooser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 { -- 2.7.4