diff scripts/plot/legend.m @ 11134:7c045d801702

legend.m: Trivial fix to allow legend handle to be returned.
author Ben Abbott <bpabbott@mac.com>
date Fri, 22 Oct 2010 08:34:54 +0800
parents a44f979a35ce
children fe3c3dfc07eb
line wrap: on
line diff
--- a/scripts/plot/legend.m
+++ b/scripts/plot/legend.m
@@ -726,7 +726,7 @@
   endif
 
   if (nargout > 0)
-    hlegend2 = hlegend2;
+    hlegend2 = hlegend;
     hobjects2 = hobjects;
     hplot2 = hplots;
     text_strings2 = text_strings;