[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 diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
+++ b/src/graphics.cc
@@ -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;
}
}