Typo in last commit, changing variable name for more readable code...
authorTon Roosendaal <ton@blender.org>
Tue, 1 Mar 2011 13:56:33 +0000 (13:56 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 1 Mar 2011 13:56:33 +0000 (13:56 +0000)
source/blender/editors/interface/interface.c

index a9a7eff1685a298db9289917e258bca788ac5c29..c7182eded184cbadbebbf9cc406da52d59a9c8da 100644 (file)
@@ -514,9 +514,9 @@ static void ui_but_update_linklines(uiBlock *block, uiBut *oldbut, uiBut *newbut
        uiBut *but;
        
        /* if active button is LINK */
-       if(but->type==LINK && but->link) {
+       if(newbut->type==LINK && newbut->link) {
                
-               SWAP(uiLink *, oldbut->link, but->link);
+               SWAP(uiLink *, oldbut->link, newbut->link);
                
                for(line= oldbut->link->lines.first; line; line= line->next) {
                        if(line->to==newbut)