[sysprof/wip/chergert/sysprof-3] libsysprof-ui: use double math
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/sysprof-3] libsysprof-ui: use double math
- Date: Wed, 15 May 2019 21:32:06 +0000 (UTC)
commit c4914675b965f5c06a0cbf19fe02619b13a184a1
Author: Christian Hergert <chergert redhat com>
Date: Wed May 15 13:45:53 2019 -0700
libsysprof-ui: use double math
src/libsysprof-ui/sysprof-cell-renderer-duration.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof-ui/sysprof-cell-renderer-duration.c
b/src/libsysprof-ui/sysprof-cell-renderer-duration.c
index c904c21..c7050c4 100644
--- a/src/libsysprof-ui/sysprof-cell-renderer-duration.c
+++ b/src/libsysprof-ui/sysprof-cell-renderer-duration.c
@@ -100,7 +100,7 @@ sysprof_cell_renderer_duration_render (GtkCellRenderer *renderer,
r.x = cell_area->x + x1;
r.height = 10;
- r.y = cell_area->y + (cell_area->height - r.height) / 2;
+ r.y = cell_area->y + (cell_area->height - r.height) / 2.0;
r.width = MAX (1.0, x2 - x1);
gdk_cairo_rectangle (cr, &r);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]