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.
This commit is contained in:
Georges Basile Stavracas Neto
2015-10-27 11:57:51 -02:00
parent e611f87d6a
commit 6afa9b98f6
+1 -1
View File
@@ -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,