mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 16:10:16 +02:00
LCL-GTK2: Render text of TLabel correctly. Issue #36128, patch from Alexey Tor.
git-svn-id: trunk@61959 -
This commit is contained in:
parent
05124b6214
commit
7a73e88954
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user