octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

colormap not returning value


From: Daniel J Sebald
Subject: colormap not returning value
Date: Tue, 06 Nov 2007 14:47:08 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Counter to colormap documentation, nothing is being returned when there are no 
arguments, e.g., colormap()

The attached patch might be more in line with documentation.

Dan


--- /usr/local/src/octave-cvs/octave/scripts/image/colormap.m   2007-11-06 
09:26:00.000000000 -0600
+++ colormap.m  2007-11-06 14:36:09.233214868 -0600
@@ -70,7 +70,7 @@
   endif
 
   ## Return current color map.
-  if (nargout > 0)
+  if (nargout >= 0)
     cmap = get (gcf (), "colormap");
   endif
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]