mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 13:37:22 +01:00
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:
parent
0928ead547
commit
282bb3de33
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user