Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-09-29 11:55:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-09-29 11:55:13 +0400
commit0fa4ba175fa7f68a163c06a8879c73ba0ee3686d (patch)
treec0cd3ae2ff7ca7723f3892c19792a71dc6b45585 /source/blender
parent33fab0f7d7433e8d942c6eb448a14da05f1a22f2 (diff)
bugfix [#24050] Frame Rate buttons look strange
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/interface/interface.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 4f9393fb862..b7ec5565d80 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -2263,8 +2263,13 @@ static void ui_block_do_align_but(uiBlock *block, uiBut *first, int nr)
flag |= UI_BUT_ALIGN_LEFT;
if( (flag & UI_BUT_ALIGN_TOP)==0) { /* stil top row */
- if(prev)
- flag= UI_BUT_ALIGN_DOWN|UI_BUT_ALIGN_LEFT;
+ if(prev) {
+ if(next && buts_are_horiz(next, but))
+ flag = UI_BUT_ALIGN_DOWN|UI_BUT_ALIGN_LEFT;
+ else {
+ flag = UI_BUT_ALIGN_DOWN|UI_BUT_ALIGN_LEFT|UI_BUT_ALIGN_RIGHT;
+ }
+ }
else
flag |= UI_BUT_ALIGN_DOWN;
}