datetime: fix wrong condition for validation in _field_limit_get()
authorRyuan Choi <ryuan.choi@gmail.com>
Thu, 6 Feb 2014 16:04:18 +0000 (01:04 +0900)
committerRyuan Choi <ryuan.choi@gmail.com>
Thu, 6 Feb 2014 16:04:18 +0000 (01:04 +0900)
It's regression since 9dc3a2829.
We don't need to consider min_limit/max_limit for ELM_DATETIME_AMPM.

This will fix CID 1167969, 1167970

src/lib/elm_datetime.c

index 5db4251..d0f9618 100644 (file)
@@ -712,7 +712,7 @@ _field_limit_get(Evas_Object *obj,
    Datetime_Field *field;
    unsigned int idx;
 
-   if (field_type > ELM_DATETIME_AMPM) return;
+   if (field_type > ELM_DATETIME_MINUTE) return;
 
    ELM_DATETIME_DATA_GET(obj, sd);