# HG changeset patch # User Rik # Date 1427598180 25200 # Node ID 9a2d8b1f931e3330d25a494dbe4e3cce0147b67c # Parent 7569e880d56c2b162c5e402ad1b586567a82764f Issue error when trying to print a figure with no axes object (bug #44655). * print.m: Check for an axes object as a child of the figure object to be printed. diff -r 7569e880d56c -r 9a2d8b1f931e scripts/plot/util/print.m --- a/scripts/plot/util/print.m Sat Mar 28 19:37:34 2015 -0700 +++ b/scripts/plot/util/print.m Sat Mar 28 20:03:00 2015 -0700 @@ -301,6 +301,10 @@ error ("print: no figure to print"); endif + if (isempty (findall (opts.figure, "-depth", "1", "type", "axes"))) + error ("print: no axes object in figure to print"); + endif + orig_figure = get (0, "currentfigure"); set (0, "currentfigure", opts.figure);