Bugfix #22201: NLA 'freeze' icon does not match box

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.
This commit is contained in:
2010-04-29 23:29:50 +00:00
parent 87072f1585
commit 12a7c8f699

View 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);
}
}