2.5
[blender-staging.git] / source / blender / editors / space_outliner / outliner.c
index 21ba9cfa7070d2537e736fea2272492bab8bf8bf..b05d9637a693be1ec90e99246b9b61438e199ae7 100644 (file)
@@ -1132,8 +1132,9 @@ static TreeElement *outliner_add_element(SpaceOops *soops, ListBase *lb, void *i
                te->name= km->nameid;
                
                if(!(tselem->flag & TSE_CLOSED)) {
+                       a= 0;
                        
-                       for (kmi= km->keymap.first; kmi; kmi= kmi->next) {
+                       for (kmi= km->keymap.first; kmi; kmi= kmi->next, a++) {
                                const char *key= WM_key_event_string(kmi->type);
                                
                                if(key[0]) {