Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_combo.c Log Message: - make sure we have a valid index before trying to grab the header =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_combo.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- ewl_combo.c 8 Apr 2006 21:06:29 -0000 1.21 +++ ewl_combo.c 10 Apr 2006 03:28:23 -0000 1.22 @@ -118,7 +118,7 @@ combo->view->assign(combo->selected, combo->model->fetch(combo->data, idx, 0)); } - else if (combo->view && combo->view->header_fetch) + else if ((idx > -1) && combo->view && combo->view->header_fetch) combo->selected = combo->view->header_fetch(combo->data, combo->selected_idx); ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs