[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 29 16:14:52 UTC 2020


 vcl/unx/gtk3/gtk3gtkinst.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 4efce3b3a783549cfdb758d63403863b9407977c
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 29 15:05:30 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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());


More information about the Libreoffice-commits mailing list