forked from enlightenment/efl
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:
parent
9014c92101
commit
4897c19265
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue