Cleanup: swapped X/Y UI_UNIT
authorCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jun 2018 09:10:32 +0000 (11:10 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 13 Jun 2018 09:10:55 +0000 (11:10 +0200)
source/blender/editors/interface/interface_layout.c

index ce9c4d14b0a090948f2d37c7fa72e8886f145d80..cf3e3d9e5992bff0972694fccbac557b1db60632 100644 (file)
@@ -1888,11 +1888,11 @@ static uiBut *ui_item_menu(
 
        if (layout->root->type == UI_LAYOUT_HEADER) { /* ugly .. */
                if (force_menu) {
-                       w += UI_UNIT_Y;
+                       w += UI_UNIT_X;
                }
                else {
                        if (name[0]) {
-                               w -= UI_UNIT_Y / 2;
+                               w -= UI_UNIT_X / 2;
                        }
                }
        }