Patch level : 12.0 no-patch

Files correlati     :
Commento            :

Corretto cast
This commit is contained in:
Alessandro Bonazzi 2020-07-26 09:46:16 +02:00
parent 93f66cf6a6
commit 0a199bb95b

View File

@ -1634,8 +1634,10 @@ void TButton_control::create(WINDOW win, short cid,
mnemonic = txt[underscore+1];
txt.strip("&~");
}
const char* t = parse_caption(txt, bold, big, color);
if (width <= 0) width = strlen(t)+3;
const char* t = parse_caption(txt, bold, big, color);
if (width <= 0) width = (short) strlen(t)+3;
XI_RCT rct = coord2rct(get_interface(win), left, top, width, height);