diff src/graphics.h.in @ 11089:d761f0dc997e

graphics.h.in: Properly set image pixel size when unique(x/ydata) is scalar.
author Ben Abbott <bpabbott@mac.com>
date Fri, 08 Oct 2010 07:33:36 -0400
parents b748b86cb8c1
children f0e9befd6a1c
line wrap: on
line diff
--- a/src/graphics.h.in	Thu Oct 07 18:18:07 2010 -0400
+++ b/src/graphics.h.in	Fri Oct 08 07:33:36 2010 -0400
@@ -3466,7 +3466,7 @@
       octave_idx_type l = dim - 1;
       float dp;
 
-      if (l > 0)
+      if (l > 0 && limits(0) != limits(1))
         dp = (limits(1) - limits(0))/(2*l);
       else
         {