Mercurial > hg > octave-nkf
diff scripts/plot/struct2hdl.m @ 15775:a1d1386daeed
struct2hdl.m: Set the "*.mode" properties last. (Bug # 37645)
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 12 Dec 2012 18:07:55 -0500 |
parents | f34bea431e4f |
children | d0579fed7e22 |
line wrap: on
line diff
--- a/scripts/plot/struct2hdl.m +++ b/scripts/plot/struct2hdl.m @@ -92,6 +92,14 @@ p = p(1:2, 1:(tst(end)-1)); endif + ## Place the "*mode" properties as the end to avoid have the updaters + ## change the mode to "manual" when the value is "auto" + names = fieldnames (s.properties); + n = strncmp (cellfun (@fliplr, names, "uniformoutput", false), "edom", 4); + n = (n | strcmp (names, "activepositionproperty")); + names = [names(!n); names(n)]; + s.properties = orderfields (s.properties, names); + ## create object if (strcmp (s.type, "root")) h = 0;