mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 10:20:19 +02:00
(Qt): check OldPoint argument in SetWindowOrgEx (issue #0009369)
git-svn-id: trunk@11714 -
This commit is contained in:
parent
dfd84ee746
commit
a1a71f0c90
@ -4046,7 +4046,8 @@ begin
|
||||
|
||||
if IsValidDC(DC) then
|
||||
begin
|
||||
GetWindowOrgEx(DC, OldPoint);
|
||||
if OldPoint <> nil then
|
||||
GetWindowOrgEx(DC, OldPoint);
|
||||
TQtDeviceContext(DC).translate(-NewX, -NewY);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user