# HG changeset patch # User Rik # Date 1400124546 25200 # Node ID 5f37573a6868ea2136a244720b6474d4c1c91bb3 # Parent e70373a98ffe3feb29c04b9288efc19c1e07671e 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. diff -r e70373a98ffe -r 5f37573a6868 scripts/plot/appearance/legend.m --- a/scripts/plot/appearance/legend.m Wed May 14 17:48:43 2014 -0700 +++ b/scripts/plot/appearance/legend.m Wed May 14 20:29:06 2014 -0700 @@ -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