Assorted UI tweaks/cleanups
[blender.git] / source / blender / editors / interface / interface.c
index e937ab0c50ad2b5b3c2ec3aa8500be426322896d..2bcc1a03923fadbb93641504cb47a870083464ed 100644 (file)
@@ -1986,7 +1986,7 @@ void uiBlockEndAlign(uiBlock *block)
 
 int ui_but_can_align(uiBut *but)
 {
-       return !ELEM(but->type, LABEL, ROUNDBOX);
+       return !ELEM3(but->type, LABEL, ROUNDBOX, TOG);
 }
 
 static void ui_block_do_align_but(uiBlock *block, uiBut *first, int nr)