}
static void itemSelectCb(void* data, Evas_Object* obj, void* event_info)
{
- int index = elm_genlist_item_index_get(elm_genlist_selected_item_get(obj))-1;
+ int index = elm_genlist_item_index_get(elm_genlist_selected_item_get(obj));
FormDataCandidatePopup* candidatePopup = static_cast<FormDataCandidatePopup*>(data);
candidatePopup->m_formDataCandidate->setValueForInputElement(m_formdata[index]);
{
Ewk_Popup_Picker* picker = static_cast<Ewk_Popup_Picker*>(data);
Elm_Object_Item* selected = static_cast<Elm_Object_Item*>(event_info);
- int index = elm_genlist_item_index_get(selected) - 1;
+ int index = elm_genlist_item_index_get(selected);
#if ENABLE(TIZEN_MULTIPLE_SELECT)
if (picker->multiSelect) {
Ewk_Popup_Picker* picker = static_cast<Ewk_Popup_Picker*>(data);
Elm_Object_Item* deselectedItem = static_cast<Elm_Object_Item*>(event_info);
- int deselectedIndex = elm_genlist_item_index_get(deselectedItem) - 1;
+ int deselectedIndex = elm_genlist_item_index_get(deselectedItem);
int pos = eina_inarray_search(picker->changedList, &deselectedIndex, compareChangedItems);
if (pos == -1)