Mercurial > octave-nkf
changeset 7304:ad066356989b
[project @ 2007-12-12 16:41:09 by jwe]
author | jwe |
---|---|
date | Wed, 12 Dec 2007 16:41:09 +0000 |
parents | 4feb1214badf |
children | 84a2e24c75c8 |
files | src/ChangeLog src/graphics.cc |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Wed Dec 12 04:00:41 2007 +0000 +++ b/src/ChangeLog Wed Dec 12 16:41:09 2007 +0000 @@ -1,3 +1,7 @@ +2007-12-12 John W. Eaton <jwe@octave.org> + + * graphics.cc (gh_manager::get_handle): Use ceil instead of trunc. + 2007-12-11 John W. Eaton <jwe@octave.org> * version.h (OCTAVE_VERSION): Now 2.9.19+.
--- a/src/graphics.cc Wed Dec 12 04:00:41 2007 +0000 +++ b/src/graphics.cc Wed Dec 12 16:41:09 2007 +0000 @@ -460,7 +460,7 @@ retval = graphics_handle (next_handle); - next_handle = trunc (next_handle) - 1.0 - (rand () + 1.0) / maxrand; + next_handle = ceil (next_handle) - 1.0 - (rand () + 1.0) / maxrand; } }