diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-27 22:10:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-27 22:10:43 +0300 |
commit | 95c5d1193f12375cd7423be9bde1606cd0a05809 (patch) | |
tree | f49a96b46897fcc0d3143182b7895e16e2dae94c /source/blender/editors/interface/interface.c | |
parent | 9c8da501063e59cc82ca3c5c614a2aaf6e351206 (diff) | |
parent | fd2c48726fd27ff1335c4adbe251fb1e076d8266 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index de1c1de4bcf..a9995001659 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -3212,7 +3212,9 @@ static uiBut *ui_def_but( } #ifdef USE_NUMBUTS_LR_ALIGN else if (ELEM(but->type, UI_BTYPE_NUM, UI_BTYPE_NUM_SLIDER)) { - but->drawflag |= UI_BUT_TEXT_LEFT; + if (slen != 0) { + but->drawflag |= UI_BUT_TEXT_LEFT; + } } #endif |