From 9be7233f2856f3d2f60e340e6ed65c909ffccbe5 Mon Sep 17 00:00:00 2001 From: Erick Perez Castellanos Date: Tue, 22 Dec 2015 23:55:12 -0600 Subject: [PATCH] date-selector: fix typo The parsing of the date mask was never happening because it was always assuming it was wrong. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=758391 --- src/gcal-date-selector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-date-selector.c b/src/gcal-date-selector.c index f493c390..a2a66bfc 100644 --- a/src/gcal-date-selector.c +++ b/src/gcal-date-selector.c @@ -244,7 +244,7 @@ gcal_date_selector_init (GcalDateSelector *self) * corresponding indexes. I should have added more validations here. */ max = strlen (priv->mask); - if (max != 6) + if (max != 8) { /* I'll assume an error and bail out with the default values */ priv->day_pos = 0;