Mercurial > hg > octave-nkf
changeset 18927:5f37573a6868
legend.m: Fix changing legend properties with handle for plotyy (bug #41970).
* legend.m: Use ismember to Correctly find legend object amid more than one
handle.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 14 May 2014 20:29:06 -0700 |
parents | e70373a98ffe |
children | fc43c8017e9b |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m +++ b/scripts/plot/appearance/legend.m @@ -173,7 +173,7 @@ if ( strcmp (get (fkids(i), "type"), "axes") && strcmp (get (fkids(i), "tag"), "legend")) udata = get (fkids(i), "userdata"); - if (any (udata.handle == ca)) + if (any (ismember (udata.handle, ca))) hlegend = fkids(i); break; endif