]> saetta.ns0.it Git - libgtkdateentry/commitdiff
Bugfix.
authorAndrea Zagli <azagli@libero.it>
Sat, 23 Dec 2006 16:40:16 +0000 (16:40 +0000)
committerAndrea Zagli <azagli@libero.it>
Sat, 23 Dec 2006 16:40:16 +0000 (16:40 +0000)
ChangeLog
src/gtkdateentry.c

index 66f3afdcc6fd8644daff92d9c4267d8d9d198289..99aae6285186976aec4284f194477a45da6f2446 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-23 Andrea Zagli <azagli@inwind.it>
+
+       * gtkdateentry.c: gtk_date_entry_get_strf now return "" if the date
+       into GtkDateEntry isn't a valid date
+
 2006-12-22 Andrea Zagli <azagli@inwind.it>
 
        * some adjustments to autotools files
index ff8ec716b37a351fcf37e346463ea99281a9572c..34b8568334a5eeecebeba565d02219b21f587db6 100644 (file)
@@ -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;