Signed-off-by: Rajeev Ranjan <rajeev.r@samsung.com>
Signed-off-by: Mike McCormack <mj.mccormack@samsung.com>
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@63950
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
max -= 1900;
if ((wd->year_min == min) && (wd->year_max == max)) return;
wd->year_min = min > 2 ? min : 2;
max -= 1900;
if ((wd->year_min == min) && (wd->year_max == max)) return;
wd->year_min = min > 2 ? min : 2;
- wd->year_max = max;
- if ((max >= wd->year_min) && (wd->selected_time.tm_year > wd->year_max))
+ if (max > wd->year_min)
+ wd->year_max = max;
+ else
+ wd->year_max = wd->year_min;
+ 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)
wd->selected_time.tm_year = wd->year_min;
wd->selected_time.tm_year = wd->year_max;
if (wd->selected_time.tm_year < wd->year_min)
wd->selected_time.tm_year = wd->year_min;