aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-model.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-09-01 02:36:20 +0800
committerMilan Crha <mcrha@redhat.com>2010-09-01 02:36:20 +0800
commit062a67cc1465d7a4d02b0308e4faaa5784d02af1 (patch)
tree64dd369215e2417da98676c92cda44978f2fb89d /calendar/gui/e-cal-model.c
parent96414281ab7be1080b1db902d6b5a6d83b256cc2 (diff)
downloadgsoc2013-evolution-062a67cc1465d7a4d02b0308e4faaa5784d02af1.tar.gz
gsoc2013-evolution-062a67cc1465d7a4d02b0308e4faaa5784d02af1.tar.zst
gsoc2013-evolution-062a67cc1465d7a4d02b0308e4faaa5784d02af1.zip
Bug #624021 - Honour weeks shown in a multi week view on print
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r--calendar/gui/e-cal-model.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index d0166b9f0e..a48fc5d8ca 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -2779,7 +2779,9 @@ e_cal_model_generate_instances (ECalModel *model, time_t start, time_t end,
mdata.comp_data = comp_data;
mdata.cb_data = cb_data;
- e_cal_generate_instances_for_object (comp_data->client, comp_data->icalcomp, start, end, cb, &mdata);
+
+ if (comp_data->instance_start < end && comp_data->instance_end > start)
+ e_cal_generate_instances_for_object (comp_data->client, comp_data->icalcomp, start, end, cb, &mdata);
}
}