QT: Prevent assigning a negative value to a Word, cought by range-check. Sould fix issue #18876.

git-svn-id: trunk@29735 -
This commit is contained in:
juha 2011-03-06 16:55:13 +00:00
parent 0928ead547
commit 282bb3de33

View File

@ -4008,7 +4008,7 @@ begin
QtKey_Flip,
QtKey_unknown: Result := VK_UNKNOWN;
else
if AKey <= $FF then // Qt:AKey = VK_KEY in many cases
if AKey in [0..255] then // Qt:AKey = VK_KEY in many cases
Result := AKey
else
if AText <> '' then