Bugfix #22201: NLA 'freeze' icon does not match box
authorJoshua Leung <aligorith@gmail.com>
Thu, 29 Apr 2010 23:29:50 +0000 (23:29 +0000)
committerJoshua Leung <aligorith@gmail.com>
Thu, 29 Apr 2010 23:29:50 +0000 (23:29 +0000)
When the channel list in the NLA Editor was resized, the 'freeze' icon on Action Lines stayed put due to a relic from older code.

source/blender/editors/space_nla/nla_draw.c

index 2ec88ba852f259ed5ae99e2f45d5ae6539376072..2314b5ddcfa8e082a8dde03f2da1e18ee12a2b19 100644 (file)
@@ -790,7 +790,7 @@ static void draw_nla_channel_list_gl (bAnimContext *ac, ListBase *anim_data, Vie
                                                
                                                fdrawline((float)(v2d->cur.xmax-offset), yminc, 
                                                                  (float)(v2d->cur.xmax-offset), ymaxc);
-                                               offset += 16;;
+                                               offset += 16;
                                                
                                                /* 'tweaking action' indicator - not a button */
                                                UI_icon_draw((float)(v2d->cur.xmax-offset), ydatac, ICON_EDIT); 
@@ -805,7 +805,7 @@ static void draw_nla_channel_list_gl (bAnimContext *ac, ListBase *anim_data, Vie
                                                glEnd(); // GL_LINES
                                                
                                                /* 'push down' icon for normal active-actions */
-                                               UI_icon_draw((float)NLACHANNEL_NAMEWIDTH-offset, ydatac, ICON_FREEZE);
+                                               UI_icon_draw((float)v2d->cur.xmax-offset, ydatac, ICON_FREEZE);
                                        }
                                }