lcl: TControlCanvas: simplify

git-svn-id: trunk@52495 -
This commit is contained in:
ondrej 2016-06-12 19:42:35 +00:00
parent dd7ec70032
commit 925bc15836

View File

@ -99,9 +99,7 @@ begin
else
WinControl := FControl.Parent;
WinControl.HandleNeeded;
end;
if FDeviceContext = 0 then
begin
// store the handle locally since we need it to check (and do not
// want to fire creation events)
FDeviceContext := FControl.GetDeviceContext(FWindowHandle);