LCL-GTK2: Render text of TLabel correctly. Issue #36128, patch from Alexey Tor.

git-svn-id: trunk@61959 -
This commit is contained in:
juha 2019-10-03 12:20:31 +00:00
parent 05124b6214
commit 7a73e88954

View File

@ -2465,7 +2465,10 @@ var
TextExtentPoint(PChar(AStr), length(AStr), AP{%H-});
theRect.Bottom := theRect.Top + TM.tmHeight;
if (Flags and DT_CALCRECT)<>0 then
theRect.Right := theRect.Left + AP.cX
begin
theRect.Right := theRect.Left + AP.cX;
theRect.Bottom := theRect.Top + AP.cY;
end
else
begin
theRect.Right := theRect.Left + Min(MaxWidth, AP.cX);