Mercurial > hg > octave-lyh
changeset 13109:8e61aa0fac77 stable
src/graphics.cc: Fix mistake in changeset c7512d0d52e8.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 06 Sep 2011 20:11:59 -0400 |
parents | c7512d0d52e8 |
children | 435d1b905e31 |
files | src/graphics.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/graphics.cc +++ b/src/graphics.cc @@ -5127,7 +5127,8 @@ { // FIXME - what if (hi-lo) < tick_sep? // ex: loglog ([1 1.1]) - tick_sep = std::ceil (tick_sep, 1.); + tick_sep = std::max (tick_sep, 1.); + tick_sep = std::ceil (tick_sep); } int i1 = static_cast<int> (gnulib::floor (lo / tick_sep));