changeset 17721:e477578fca3d

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.
author Rik <rik@octave.org>
date Mon, 21 Oct 2013 22:46:06 -0700
parents 1ab8e21d9cfc
children 5b0036d89d4a
files scripts/plot/util/print.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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