Mercurial > octave
comparison scripts/plot/util/print.m @ 17751:e2f83152e64a
print.m: Restore figure position first (in pixels) and then original units.
* scripts/plot/util/print.m: Restore figure position first (in pixels) and then
original units.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 24 Oct 2013 13:17:13 -0700 |
parents | d63878346099 |
children | 13c80c3e9660 d6f1f46e5b8f |
comparison
equal
deleted
inserted
replaced
17750:94c7b2252490 | 17751:e2f83152e64a |
---|---|
423 endswitch | 423 endswitch |
424 | 424 |
425 unwind_protect_cleanup | 425 unwind_protect_cleanup |
426 ## restore modified properties | 426 ## restore modified properties |
427 if (isstruct (props)) | 427 if (isstruct (props)) |
428 for n = 1:numel (props) | 428 ## Restore figure position and units first |
429 for n = 2:-1:1 | |
430 if (ishandle (props(n).h)) | |
431 set (props(n).h, props(n).name, props(n).value{1}); | |
432 endif | |
433 endfor | |
434 for n = numel (props):-1:3 | |
429 if (ishandle (props(n).h)) | 435 if (ishandle (props(n).h)) |
430 set (props(n).h, props(n).name, props(n).value{1}); | 436 set (props(n).h, props(n).name, props(n).value{1}); |
431 endif | 437 endif |
432 endfor | 438 endfor |
433 endif | 439 endif |