# HG changeset patch # User Ben Abbott # Date 1328918275 18000 # Node ID c097c22e9294e1323d5e7f73c7fe08bab1012f22 # Parent a6a5c5008e39b9b4529312001b8ae4a18ace26de print.m: Restore figure properties in reverse of the order of modification. diff --git a/scripts/plot/print.m b/scripts/plot/print.m --- a/scripts/plot/print.m +++ b/scripts/plot/print.m @@ -397,7 +397,7 @@ unwind_protect_cleanup ## restore modified properties if (isstruct (props)) - for n = 1:numel(props) + for n = numel(props):-1:1 if (ishandle (props(n).h)) set (props(n).h, props(n).name, props(n).value{1}); endif