Small fix for text input buttons:

Number buttons, in text input mode, now also align internally 
like text buttons.
This commit is contained in:
Ton Roosendaal 2011-01-23 19:20:10 +00:00
parent d58c31704b
commit 490616d5bd

@ -1110,7 +1110,10 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
if(but==NULL) return;
/* clip but->drawstr to fit in available space */
if (ELEM4(but->type, NUM, NUMABS, NUMSLI, SLI)) {
if (but->editstr && but->pos >= 0) {
ui_text_leftclip(fstyle, but, rect);
}
else if (ELEM4(but->type, NUM, NUMABS, NUMSLI, SLI)) {
ui_text_label_rightclip(fstyle, but, rect);
}
else if (ELEM(but->type, TEX, SEARCH_MENU)) {