# HG changeset patch # User Rik # Date 1382420766 25200 # Node ID e477578fca3dbe610567e1acfde87cfdd985dc7d # Parent 1ab8e21d9cfcdaf8454d5e02b5b27227f8c634f9 print.m: Fix printing when using -F option with legends (bug #40334). * scripts/plot/util/print.m: Sort graphics handles so that axes children are acted on before axes itself. diff -r 1ab8e21d9cfc -r e477578fca3d scripts/plot/util/print.m --- a/scripts/plot/util/print.m Mon Oct 21 22:25:15 2013 -0700 +++ b/scripts/plot/util/print.m Mon Oct 21 22:46:06 2013 -0700 @@ -405,7 +405,8 @@ ## This is done to work around the bbox being whole numbers. fontsize = fontsize * opts.scalefontsize; endif - set (h(ishandle (h)), "fontsize", fontsize); + ## FIXME: sort needed so legend child objects are acted on first + set (sort (h(ishandle (h))), "fontsize", fontsize); endif endif