summaryrefslogtreecommitdiff
path: root/baobab/src/baobab-treemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'baobab/src/baobab-treemap.c')
-rw-r--r--baobab/src/baobab-treemap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/baobab/src/baobab-treemap.c b/baobab/src/baobab-treemap.c
index ee25fd87..c86a584a 100644
--- a/baobab/src/baobab-treemap.c
+++ b/baobab/src/baobab-treemap.c
@@ -284,17 +284,17 @@ baobab_treemap_get_item_rectangle (GtkWidget *chart,
_rect = (cairo_rectangle_t *) item->data;
- item->rect.x = _rect->x;
- item->rect.y = _rect->y;
+ item->rect.x = (int) _rect->x;
+ item->rect.y = (int) _rect->y;
if (item->depth % 2 != 0)
{
- item->rect.width = _rect->width - ITEM_PADDING;
- item->rect.height = _rect->height;
+ item->rect.width = (int) _rect->width - ITEM_PADDING;
+ item->rect.height = (int) _rect->height;
}
else
{
- item->rect.width = _rect->width;
- item->rect.height = _rect->height - ITEM_PADDING;
+ item->rect.width = (int) _rect->width;
+ item->rect.height = (int) _rect->height - ITEM_PADDING;
}
}