[elm_datetime.c] Datetime bug fix - Separator for lastly parsed field is not updated...
authorsumanth <sumanth.m@samsung.com>
Mon, 29 Apr 2013 11:07:21 +0000 (16:37 +0530)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 04:32:12 +0000 (13:32 +0900)
Change-Id: I5ac32273445c8ad620015a35a663e5ba4b9a2933

src/lib/elm_datetime.c

index 0824096..924f1f2 100644 (file)
@@ -297,6 +297,14 @@ _parse_format(Evas_Object *obj,
         sep_lookup = EINA_FALSE;
         fmt_ptr++;
      }
+
+   //update the separator for last field
+   if (field)
+     {
+        separator[len] = 0;
+        eina_stringshare_replace(&field->separator, separator);
+     }
+
    // return the number of valid fields parsed.
    return location;
 }