IdeIntf: Set max value of TEdit.PasswordChar to $7F. Prevents an error during form load. Issue #22373, patch from Bart

git-svn-id: trunk@40916 -
This commit is contained in:
juha 2013-04-28 20:18:41 +00:00
parent db8ed033f7
commit 2166765d19

View File

@ -3077,7 +3077,9 @@ begin
exit;
end;
with GetTypeData(GetPropType)^ do
if (L < MinValue) or (L > MaxValue) then begin
//Only Chars < #$80 are valid single-byte UTF-8 codepoints,
//so use this instead of MaxValue (255 for tkChar), since LCL is UTF-8
if (L < MinValue) or (L > $7F) then begin
{raise EPropertyError.CreateResFmt(@SOutOfRange, [MinValue, MaxValue])};
exit;
end;