Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface.c
| Show First 20 Lines • Show All 407 Lines • ▼ Show 20 Lines | if (bt->next && ui_but_is_row_alignment_group(bt, bt->next)) { | ||||
| /* Give the following code the last button in the alignment group, there might have to be a | /* Give the following code the last button in the alignment group, there might have to be a | ||||
| * split immediately after. */ | * split immediately after. */ | ||||
| bt = col_bt ? col_bt->prev : NULL; | bt = col_bt ? col_bt->prev : NULL; | ||||
| } | } | ||||
| if (bt && bt->next && bt->rect.xmin < bt->next->rect.xmin) { | if (bt && bt->next && bt->rect.xmin < bt->next->rect.xmin) { | ||||
| /* End of this column, and it's not the last one. */ | /* End of this column, and it's not the last one. */ | ||||
| for (col_bt = init_col_bt; col_bt->prev != bt; col_bt = col_bt->next) { | for (col_bt = init_col_bt; col_bt->prev != bt; col_bt = col_bt->next) { | ||||
| if (!col_bt->alignnr) { | |||||
| col_bt->rect.xmin = x1addval; | col_bt->rect.xmin = x1addval; | ||||
| col_bt->rect.xmax = x1addval + i + block->bounds; | col_bt->rect.xmax = x1addval + i + block->bounds; | ||||
| ui_but_update(col_bt); /* clips text again */ | ui_but_update(col_bt); /* clips text again */ | ||||
| } | } | ||||
| } | |||||
| /* And we prepare next column. */ | /* And we prepare next column. */ | ||||
| x1addval += i + block->bounds; | x1addval += i + block->bounds; | ||||
| i = 0; | i = 0; | ||||
| init_col_bt = col_bt; | init_col_bt = col_bt; | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 6,677 Lines • Show Last 20 Lines | |||||