mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 14:50:32 +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
|
if IsValidDC(DC) then
|
||||||
begin
|
begin
|
||||||
GetWindowOrgEx(DC, OldPoint);
|
if OldPoint <> nil then
|
||||||
|
GetWindowOrgEx(DC, OldPoint);
|
||||||
TQtDeviceContext(DC).translate(-NewX, -NewY);
|
TQtDeviceContext(DC).translate(-NewX, -NewY);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user