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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user