Don't accept an empty input when setting a paste canvas' layer's 'canvas' parameter...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 17 Sep 2007 11:50:46 +0000 (11:50 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Mon, 17 Sep 2007 11:50:46 +0000 (11:50 +0000)
git-svn-id: http://svn.voria.com/code@687 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 0df22a7..883c9e3 100644 (file)
@@ -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
        {