dia r3997 - in trunk: . app
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r3997 - in trunk: . app
- Date: Sat, 10 May 2008 11:33:27 +0100 (BST)
Author: hans
Date: Sat May 10 10:33:27 2008
New Revision: 3997
URL: http://svn.gnome.org/viewvc/dia?rev=3997&view=rev
Log:
2008-05-10 Hans Breuer <hans breuer org>
* lib/grid.c(grid_draw_*_lines) : the major lines were sometimes off
by one due to rounding problems. Fixes bug #382212.
Modified:
trunk/ChangeLog
trunk/app/grid.c
Modified: trunk/app/grid.c
==============================================================================
--- trunk/app/grid.c (original)
+++ trunk/app/grid.c Sat May 10 10:33:27 2008
@@ -78,7 +78,7 @@
*/
if (major_lines) {
- major_count = (int)ceil(pos/length);
+ major_count = ROUND (pos/length);
if(major_count < 0) major_count -= major_lines * major_count;
major_count %= major_lines;
}
@@ -115,7 +115,7 @@
ddisplay_transform_coords(ddisp, update->right, update->bottom, &width, &height);
if (major_lines) {
- major_count = (int)ceil(pos/length);
+ major_count = ROUND (pos/length);
if(major_count < 0) major_count -= major_lines * major_count;
major_count %= major_lines;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]