From 8410cdd71c209dff234dd9ba01246ce5a8dfbf2b Mon Sep 17 00:00:00 2001 From: Chris Want Date: Sat, 21 Feb 2004 16:50:09 +0000 Subject: [PATCH] Todd Koeckeritz' patch to fix inconsistent placement in multicolumn menu's. --- source/blender/src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 07fa73dec13..fc3ba9c28b9 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -890,7 +890,7 @@ static int ui_do_but_MENU(uiBut *but) for(a=0; anitems; a++) { x1= but->x1 + width*((int)(md->nitems-a-1)/rows); - y1= but->y1 - boxh*(a%rows) + (rows-1)*boxh; + y1= but->y1 - boxh*(rows - ((md->nitems - a - 1)%rows)) + (rows*boxh); if (strcmp(md->items[md->nitems-a-1].str, "%l")==0) { uiDefBut(block, SEPR, B_NOP, "", x1, y1,(short)(width-(rows>1)), (short)(boxh-1), NULL, 0.0, 0.0, 0, 0, "");