Fix forgotten attribution of max year on elm calendar widget

This bug was always setting the displayed year to min year
when the function elm_calendar_min_max_set is called.



SVN revision: 55881
This commit is contained in:
Bruno Dilly 2011-01-05 14:23:39 +00:00
parent 9014c92101
commit 4897c19265
1 changed files with 1 additions and 0 deletions

View 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)