vcl/unx/gtk3/gtk3gtkinst.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 07c839e18b508a81f4eb10813386109dc154ae4c Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jul 29 15:05:30 2020 +0100 Commit: Michael Stahl <michael.st...@cib.de> CommitDate: Fri Jul 31 20:29:46 2020 +0200
ignore invalid dates like the vcl Calendar does Change-Id: I6a607936849923bfb7e7db3550ebca3c9083aa8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99608 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@cib.de> diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index f49dba8e5489..fa797e779752 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -8486,6 +8486,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