[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun Apr 21 16:16:22 UTC 2019
vcl/unx/gtk3/gtk3gtkinst.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit de2bf2c2457a4113e0929f59a88f166d824f25ca
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Apr 21 14:53:15 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Apr 21 18:15:17 2019 +0200
GtkCalendar months are 0..11
Change-Id: I2155bc7bb11fc0df39e14a53f1415d1740bc2bc5
Reviewed-on: https://gerrit.libreoffice.org/71039
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index e5de3dc4f2d6..895370bf660a 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -5366,7 +5366,7 @@ public:
virtual void set_date(const Date& rDate) override
{
- gtk_calendar_select_month(m_pCalendar, rDate.GetMonth(), rDate.GetYear());
+ gtk_calendar_select_month(m_pCalendar, rDate.GetMonth() - 1, rDate.GetYear());
gtk_calendar_select_day(m_pCalendar, rDate.GetDay());
}
@@ -5374,7 +5374,7 @@ public:
{
guint year, month, day;
gtk_calendar_get_date(m_pCalendar, &year, &month, &day);
- return Date(day, month, year);
+ return Date(day, month + 1, year);
}
virtual void disable_notify_events() override
More information about the Libreoffice-commits
mailing list