diff scripts/image/colormap.m @ 7108:60a1165732f9

[project @ 2007-11-06 22:05:18 by jwe]
author jwe
date Tue, 06 Nov 2007 22:06:27 +0000
parents a1dbe9d80eee
children 5dd06f19e9be
line wrap: on
line diff
--- a/scripts/image/colormap.m	Tue Nov 06 20:32:25 2007 +0000
+++ b/scripts/image/colormap.m	Tue Nov 06 22:06:27 2007 +0000
@@ -70,7 +70,7 @@
   endif
 
   ## Return current color map.
-  if (nargout > 0)
+  if (nargout > 0 || (nargout == 0 && nargin == 0))
     cmap = get (gcf (), "colormap");
   endif