week-view: another integer rounding issue

Hopefully, this is the last one on the integer rounding series.
This commit is contained in:
Georges Basile Stavracas Neto
2014-12-04 17:10:53 -05:00
committed by Erick Pérez Castellanos
parent 36cd11955f
commit 89b6c57edd
+2 -2
View File
@@ -924,8 +924,8 @@ gcal_week_view_size_allocate (GtkWidget *widget,
}
sidebar_width = get_sidebar_width (widget);
horizontal_block = (allocation->width - sidebar_width) / 7;
vertical_block = gdk_window_get_height (priv->grid_window) / 24;
horizontal_block = (allocation->width - sidebar_width) / 7.0;
vertical_block = gdk_window_get_height (priv->grid_window) / 24.0;
for (i = 0; i < 7; i++)
{