Textbuttons and buttons showing ID names (Objects, etc) were accidentally
also translated. Error since 2.3 recode. :)
This commit is contained in:
2004-12-03 15:28:48 +00:00
parent 1411f7ed59
commit 9c9047a641
2 changed files with 14 additions and 5 deletions

View File

@@ -1472,6 +1472,8 @@ static void ui_draw_text_icon(uiBut *but)
}
}
if(but->drawstr[0]!=0) {
int transopts;
// cut string in 2 parts
cpoin= strchr(but->drawstr, '|');
if(cpoin) *cpoin= 0;
@@ -1526,7 +1528,9 @@ static void ui_draw_text_icon(uiBut *but)
if(but->type==LABEL && but->min!=0.0) BIF_ThemeColor(TH_BUT_TEXT_HI);
ui_rasterpos_safe(x, (but->y1+but->y2- 9.0)/2.0, but->aspect);
BIF_DrawString(but->font, but->drawstr+but->ofs, (U.transopts & USER_TR_BUTTONS));
if(but->type==TEX || but->type==IDPOIN) transopts= 0; // no translation, of course!
else transopts= (U.transopts & USER_TR_BUTTONS);
BIF_DrawString(but->font, but->drawstr+but->ofs, transopts);
/* part text right aligned */
if(cpoin) {