From 6afa9b98f63e2189d95b721e05beb6a1088e8077 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 27 Oct 2015 11:57:51 -0200 Subject: [PATCH] month-view: fix mirroring macro It was using a local variable, which is a bad idea. It only worked because we were using it in the context of that local variable, but it was luck. --- src/gcal-month-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c index c999de92..fdb77c52 100644 --- a/src/gcal-month-view.c +++ b/src/gcal-month-view.c @@ -89,7 +89,7 @@ enum PROP_DATE, /* active-date inherited property */ }; -#define MIRROR(val,start,end) (start + (val / end) * end + (end - cell % end)) +#define MIRROR(val,start,end) (start + (val / end) * end + (end - val % end)) static gint gather_button_event_data (GcalMonthView *view, gdouble x,