Fix forgotten attribution of max year on elm calendar widget
authorBruno Dilly <bdilly@profusion.mobi>
Wed, 5 Jan 2011 14:23:39 +0000 (14:23 +0000)
committerBruno Dilly <bdilly@profusion.mobi>
Wed, 5 Jan 2011 14:23:39 +0000 (14:23 +0000)
This bug was always setting the displayed year to min year
when the function elm_calendar_min_max_set is called.

SVN revision: 55881

src/lib/elm_calendar.c

index a4a8487..3c2ff39 100644 (file)
@@ -901,6 +901,7 @@ elm_calendar_min_max_year_set(Evas_Object *obj, int min, int max)
    max -= 1900;
    if ((wd->year_min == min) && (wd->year_max == max)) return;
    wd->year_min = min > 2 ? min : 2;
+   wd->year_max = max;
    if (wd->selected_time.tm_year > wd->year_max)
      wd->selected_time.tm_year = wd->year_max;
    if (wd->selected_time.tm_year < wd->year_min)