Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / interface / interface.c
index de1c1de4bcf343aec106123a50720b5e1fd80092..a99950016598e1e84b9cd168d1d86ad4eeb14917 100644 (file)
@@ -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