week-view: another integer rounding issue
Hopefully, this is the last one on the integer rounding series.
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
36cd11955f
commit
89b6c57edd
@@ -924,8 +924,8 @@ gcal_week_view_size_allocate (GtkWidget *widget,
|
|||||||
}
|
}
|
||||||
|
|
||||||
sidebar_width = get_sidebar_width (widget);
|
sidebar_width = get_sidebar_width (widget);
|
||||||
horizontal_block = (allocation->width - sidebar_width) / 7;
|
horizontal_block = (allocation->width - sidebar_width) / 7.0;
|
||||||
vertical_block = gdk_window_get_height (priv->grid_window) / 24;
|
vertical_block = gdk_window_get_height (priv->grid_window) / 24.0;
|
||||||
|
|
||||||
for (i = 0; i < 7; i++)
|
for (i = 0; i < 7; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user