lcl: less with-blocks for FPC 3.1.1

git-svn-id: trunk@50295 -
This commit is contained in:
mattias 2015-11-11 13:39:36 +00:00
parent aef3b1f66e
commit 0065a10670

View File

@ -2619,13 +2619,10 @@ var
begin
wFrame := frame;
cFrame := contentRectForFrameRect(wFrame);
with Result do
begin
Left := Round(cFrame.origin.x - wFrame.origin.x);
Top := Round(wFrame.origin.y + wFrame.size.height - cFrame.origin.y - cFrame.size.height);
Right := Left + Round(cFrame.size.width);
Bottom := Top + Round(cFrame.size.height);
end;
Result.Left := Round(cFrame.origin.x - wFrame.origin.x);
Result.Top := Round(wFrame.origin.y + wFrame.size.height - cFrame.origin.y - cFrame.size.height);
Result.Right := Result.Left + Round(cFrame.size.width);
Result.Bottom := Result.Top + Round(cFrame.size.height);
end;
{ TCocoaListBox }