vcl/unx/gtk3/gtk3gtkinst.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 4efce3b3a783549cfdb758d63403863b9407977c Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jul 29 15:05:30 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Jul 29 18:14:10 2020 +0200
ignore invalid dates like the vcl Calendar does Change-Id: I6a607936849923bfb7e7db3550ebca3c9083aa8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99698 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 7b9b8b134e3d..a647bdfdaaec 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -8551,6 +8551,9 @@ public: virtual void set_date(const Date& rDate) override { + if (!rDate.IsValidAndGregorian()) + return; + disable_notify_events(); gtk_calendar_select_month(m_pCalendar, rDate.GetMonth() - 1, rDate.GetYear()); gtk_calendar_select_day(m_pCalendar, rDate.GetDay()); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits