From b43d32acfbc977ba37c8141bc0b61e2f757b43f0 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 23 Dec 2006 16:40:16 +0000 Subject: [PATCH] Bugfix. --- ChangeLog | 5 +++++ src/gtkdateentry.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 66f3afd..99aae62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-23 Andrea Zagli + + * gtkdateentry.c: gtk_date_entry_get_strf now return "" if the date + into GtkDateEntry isn't a valid date + 2006-12-22 Andrea Zagli * some adjustments to autotools files diff --git a/src/gtkdateentry.c b/src/gtkdateentry.c index ff8ec71..34b8568 100644 --- a/src/gtkdateentry.c +++ b/src/gtkdateentry.c @@ -264,6 +264,11 @@ const gchar gint i; GDate *gdate = (GDate *)gtk_date_entry_get_gdate (date); + if (gdate == NULL) + { + return ""; + } + if (format == NULL) { fmt = date->format; -- 2.49.0