[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - vcl/unx
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 31 18:30:19 UTC 2020
vcl/unx/gtk3/gtk3gtkinst.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 07c839e18b508a81f4eb10813386109dc154ae4c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jul 29 15:05:30 2020 +0100
Commit: Michael Stahl <michael.stahl at 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.stahl at 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());
More information about the Libreoffice-commits
mailing list