Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_mvc.c Log Message: do only a highlight if the widget exists =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_mvc.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- ewl_mvc.c 12 Nov 2007 22:42:22 -0000 1.36 +++ ewl_mvc.c 1 Dec 2007 13:18:54 -0000 1.37 @@ -1218,7 +1218,10 @@ idx = EWL_SELECTION_IDX(sel); w = widget(mvc, sel->data, idx->row, idx->column); - ewl_mvc_highlight_do(mvc, c, sel, w); + /* w can be NULL, for example when the selected + * row or widget is hidden or collapsed */ + if (w) + ewl_mvc_highlight_do(mvc, c, sel, w); } else { ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs