diff options
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index b3b187f92a2..a258d22a8dc 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -536,9 +536,11 @@ static uiBut *ui_item_with_label(uiLayout *layout, uiBlock *block, const char *n uiBlockSetCurLayout(block, sub); if(name[0]) { - /* XXX UI_GetStringWidth is not accurate - labelw= UI_GetStringWidth(name); - CLAMP(labelw, w/4, 3*w/4);*/ + /* XXX UI_GetStringWidth is not accurate */ +#if 0 + labelw = UI_GetStringWidth(name); + CLAMP(labelw, w/4, 3*w/4); +#endif labelw= w/3; uiDefBut(block, LABEL, 0, name, x, y, labelw, h, NULL, 0.0, 0.0, 0, 0, ""); w= w-labelw; |