Mercurial > jwe > octave
changeset 28653:60d2b3d903d4 stable
Fix indexing error in print.m (bug #58998).
* scripts/plot/util/print.m: Don't overwrite previously set element in props
structure.
author | Valdas <zmogas@hotmail.com> |
---|---|
date | Sun, 23 Aug 2020 10:44:53 -0400 |
parents | d075c2f26d1d |
children | a57e52e4523a f69520cb392d |
files | scripts/plot/util/print.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/print.m Sat Aug 15 23:40:00 2020 -0400 +++ b/scripts/plot/util/print.m Sun Aug 23 10:44:53 2020 -0400 @@ -480,9 +480,9 @@ "-not", "units", "normalized", "-not", "units", "data"); hobj(strncmp (get (hobj, "type"), "ui", 2)) = []; for n = 1:numel(hobj) - props(n).h = hobj(n); - props(n).name = "units"; - props(n).value = {get(hobj(n), "units")}; + props(end+1).h = hobj(n); + props(end).name = "units"; + props(end).value = {get(hobj(n), "units")}; set (hobj(n), "units", "data"); nfig += 1; endfor