aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-week-view-layout.c')
-rw-r--r--calendar/gui/e-week-view-layout.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/e-week-view-layout.c b/calendar/gui/e-week-view-layout.c
index b2fc7ca158..1e7f6366b1 100644
--- a/calendar/gui/e-week-view-layout.c
+++ b/calendar/gui/e-week-view-layout.c
@@ -377,10 +377,13 @@ e_week_view_layout_get_day_position (gint day,
if (arr[i - m] > 1) {
any = TRUE;
- if (wd > 6) { /* too many rows, make last shorter */
+ /* too many rows, make last shorter */
+ if (wd > 6) {
arr[i - m] --;
wd--;
- } else if (wd < 6) { /* free rows left, enlarge those bigger */
+
+ /* free rows left, enlarge those bigger */
+ } else if (wd < 6) {
arr[i - m] ++;
wd++;
}