changeset 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 c5640104bce1
children 047b0e877a14
files scripts/ChangeLog scripts/plot/legend.m
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Thu Oct 21 17:22:50 2010 -0400
+++ b/scripts/ChangeLog	Fri Oct 22 08:34:54 2010 +0800
@@ -1,3 +1,7 @@
+2010-10-22  Ben Abbott <bpabbott@mac.com>
+
+	* plot/legend.m: Trivial fix to allow legend handle to be returned.
+
 2010-10-21  John W. Eaton  <jwe@octave.org>
 
 	* statistics/base/quantile.m: Fix typo in previous change.
--- a/scripts/plot/legend.m	Thu Oct 21 17:22:50 2010 -0400
+++ b/scripts/plot/legend.m	Fri Oct 22 08:34:54 2010 +0800
@@ -726,7 +726,7 @@
   endif
 
   if (nargout > 0)
-    hlegend2 = hlegend2;
+    hlegend2 = hlegend;
     hobjects2 = hobjects;
     hplot2 = hplots;
     text_strings2 = text_strings;