# HG changeset patch # User Ben Abbott # Date 1286537616 14400 # Node ID d761f0dc997e95ab1545d27521d44e0c6feca1d0 # Parent 3071d909ebab70dbb0a8acd40dcb3ec492f0797a graphics.h.in: Properly set image pixel size when unique(x/ydata) is scalar. diff -r 3071d909ebab -r d761f0dc997e src/ChangeLog --- a/src/ChangeLog Thu Oct 07 18:18:07 2010 -0400 +++ b/src/ChangeLog Fri Oct 08 07:33:36 2010 -0400 @@ -1,3 +1,8 @@ +2010-10-08 Ben Abbott + + * graphics.h.in: Properly set image pixel size when unique(x/ydata) + is scalar. + 2010-10-07 Rik * DLD-FUNCTIONS/conv2.cc (convn): Update docstring. Add 1 new test. diff -r 3071d909ebab -r d761f0dc997e src/graphics.h.in --- 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 {