changeset 18787: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	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