Fix uiList labels themed colors.
authorBastien Montagne <montagne29@wanadoo.fr>
Mon, 26 Aug 2013 12:32:46 +0000 (12:32 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Mon, 26 Aug 2013 12:32:46 +0000 (12:32 +0000)
r57760 broke usual labels, and r59511 broke again uiList labels! :P Hopefully every one works as expected now!

source/blender/editors/interface/interface_widgets.c

index 30988acff151177b40013bde64e998fcef06ece9..b469dc994bc0cee9e7ce4731d604c60afa94b665 100644 (file)
@@ -2980,7 +2980,9 @@ static uiWidgetType *widget_type(uiWidgetTypeEnum type)
 
                case UI_WTYPE_LISTLABEL:
                        wt.wcol_theme = &btheme->tui.wcol_list_item;
-                       /* fall-through */  /* we use usual label code too. */
+                       wt.draw = NULL;
+                       /* Can't use usual label code. */
+                       break;
                case UI_WTYPE_LABEL:
                        wt.draw = NULL;
                        wt.state = widget_state_label;