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
This commit is contained in:
@@ -244,7 +244,7 @@ gcal_date_selector_init (GcalDateSelector *self)
|
|||||||
* corresponding indexes. I should have added more validations here.
|
* corresponding indexes. I should have added more validations here.
|
||||||
*/
|
*/
|
||||||
max = strlen (priv->mask);
|
max = strlen (priv->mask);
|
||||||
if (max != 6)
|
if (max != 8)
|
||||||
{
|
{
|
||||||
/* I'll assume an error and bail out with the default values */
|
/* I'll assume an error and bail out with the default values */
|
||||||
priv->day_pos = 0;
|
priv->day_pos = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user