fixed bug #1362443 - BrandingText /TRIM* expands label
a warning is displayed if the label is actually expanded git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4464 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
e43d521307
commit
ccec5e08cb
1 changed files with 7 additions and 0 deletions
|
@ -3277,11 +3277,18 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
|
|||
else
|
||||
wsprintf(str, "Nullsoft Install System %s", CONST_STR(NSIS_VERSION));
|
||||
|
||||
short old_width = td.GetItem(IDC_VERSTR)->sWidth;
|
||||
|
||||
switch (trim) {
|
||||
case 1: td.LTrimToString(IDC_VERSTR, str, 4); break;
|
||||
case 2: td.RTrimToString(IDC_VERSTR, str, 4); break;
|
||||
case 3: td.CTrimToString(IDC_VERSTR, str, 4); break;
|
||||
}
|
||||
|
||||
if (td.GetItem(IDC_VERSTR)->sWidth > old_width)
|
||||
{
|
||||
warning_fl("BrandingText: \"%s\" is too long, trimming has expanded the label", str);
|
||||
}
|
||||
}
|
||||
|
||||
DWORD dwSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue