diff options
Diffstat (limited to 'baobab/src/baobab-treemap.c')
-rw-r--r-- | baobab/src/baobab-treemap.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/baobab/src/baobab-treemap.c b/baobab/src/baobab-treemap.c index ee25fd87..966caddf 100644 --- a/baobab/src/baobab-treemap.c +++ b/baobab/src/baobab-treemap.c @@ -1,22 +1,20 @@ -/* - * baobab-treemap.c +/* Copyright (C) 2008 Igalia + * Copyright (C) 2012-2021 MATE Developers * - * Copyright (C) 2008 Igalia + * This file is part of MATE Utils. * - * This program is free software; you can redistribute it and/or modify + * MATE Utils is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * MATE Utils is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, - * Boston, MA 02110-1301 USA + * along with MATE Utils. If not, see <https://www.gnu.org/licenses/>. * * Authors: * Fabio Marzocca <[email protected]> @@ -284,17 +282,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; } } |