void-packages/srcpkgs/evolution/patches/e290cf27cd8a903acdf9c6ed7b746903bbda9e6d.patch
2024-04-17 17:14:52 -07:00

28 lines
1.2 KiB
Diff

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