month-view: fixed small position calc issue

When using double for *part* of the calculation of Y position, the result is completely wrong.

This commit fixes it.
This commit is contained in:
Georges Basile Stavracas Neto
2014-12-05 00:04:42 -02:00
parent c67da7b24b
commit 23a7cda500
+1 -1
View File
@@ -947,7 +947,7 @@ gcal_month_view_button_release (GtkWidget *widget,
gtk_widget_queue_draw (widget);
x = (width / 7) * ((priv->end_mark_cell % 7) + 0.5);
y = start_grid_y + v_block * (lines_gap_for_5 + (priv->end_mark_cell / 7.0) + 0.5);
y = start_grid_y + v_block * (lines_gap_for_5 + (priv->end_mark_cell / 7) + 0.5);
start_date = gcal_dup_icaltime (priv->date);
start_date->day = priv->start_mark_cell - (priv->days_delay + 7 * february_gap) + 1;