From f22446cec7bb48660d72b81c3f539665a5c1750f Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 15 May 2019 13:45:53 -0700 Subject: [PATCH] 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 c904c21a..c7050c4a 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);