lcl: less with-blocks for FPC 3.1.1

git-svn-id: trunk@50302 -
This commit is contained in:
mattias 2015-11-11 13:40:23 +00:00
parent e926976aa9
commit 84975022d6

View File

@ -1476,8 +1476,7 @@ begin
WideStr := QtDC.Metrics.elidedText(WideStr, QtElideRight, Right - Left, 0);
end;
with ARect do
QtDC.DrawText(Left + Pt.X, Top + Pt.Y, Right-Left, Bottom-Top, F, @WideStr);
QtDC.DrawText(ARect.Left + Pt.X, ARect.Top + Pt.Y, ARect.Right-ARect.Left, ARect.Bottom-ARect.Top, F, @WideStr);
end;
{------------------------------------------------------------------------------