[gnome-calendar] month-view: fixed small position calc issue
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fixed small position calc issue
- Date: Fri, 5 Dec 2014 02:05:05 +0000 (UTC)
commit 23a7cda5008eb474d4011cd1a7e9a8456b637809
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Dec 5 00:04:01 2014 -0200
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.
src/gcal-month-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 80b6d78..8124d82 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]