# HG changeset patch # User Konstantinos Poulios # Date 1295947803 -3600 # Node ID 5356c44ecede997342452bfb5655d4b245e32779 # Parent e6295ea9ac8ad2284c7e895719dec218c2030949 fix wrong dimensions of minor ticks vector diff -r e6295ea9ac8a -r 5356c44ecede src/ChangeLog --- a/src/ChangeLog Tue Jan 25 04:10:40 2011 -0500 +++ b/src/ChangeLog Tue Jan 25 10:30:03 2011 +0100 @@ -1,3 +1,8 @@ +2011-01-25 Konstantinos Poulios + + * src/graphics.cc (axes::properties::calc_ticks_and_lims): + Fixing wrong dimensions of minor ticks vector. + 2011-01-25 John W. Eaton * oct-map.h (octave_map::octave_map (const string_vector&)): diff -r e6295ea9ac8a -r 5356c44ecede src/graphics.cc --- a/src/graphics.cc Tue Jan 25 04:10:40 2011 -0500 +++ b/src/graphics.cc Tue Jan 25 10:30:03 2011 +0100 @@ -4435,7 +4435,7 @@ ticks = tmp_ticks; int n = is_logscale ? 9 : 4; - Matrix tmp_mticks (1, n * tmp_ticks.numel ()); + Matrix tmp_mticks (1, n * (tmp_ticks.numel () - 1)); for (int i = 0; i < tmp_ticks.numel ()-1; i++) {