blob: 666947a5784e9a744730042001167c958bf75519 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
From e290cf27cd8a903acdf9c6ed7b746903bbda9e6d Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Thu, 11 Apr 2024 10:47:28 +0200
Subject: [PATCH] I#2617 - Wrong weeks in Month view when returning from
different page of dates
Closes https://gitlab.gnome.org/GNOME/evolution/-/issues/2617
---
src/modules/calendar/e-cal-shell-content.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/calendar/e-cal-shell-content.c b/src/modules/calendar/e-cal-shell-content.c
index 0eb4b41c5f..9c2a0f9c8c 100644
--- a/src/modules/calendar/e-cal-shell-content.c
+++ b/src/modules/calendar/e-cal-shell-content.c
@@ -504,7 +504,7 @@ cal_shell_content_datepicker_selection_changed_cb (ECalendarItem *calitem,
cal_shell_content->priv->current_view == E_CAL_VIEW_KIND_LIST) {
sel_end = sel_start;
if (cal_shell_content->priv->current_view == E_CAL_VIEW_KIND_MONTH) {
- g_date_add_days (&sel_end, 7 * e_week_view_get_weeks_shown (E_WEEK_VIEW (cal_shell_content->priv->views[E_CAL_VIEW_KIND_WEEK])));
+ g_date_add_days (&sel_end, 7 * e_week_view_get_weeks_shown (E_WEEK_VIEW (cal_shell_content->priv->views[E_CAL_VIEW_KIND_MONTH])));
} else {
/* whole month */
g_date_set_day (&sel_start, 1);
--
GitLab
|