mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-24 06:00:15 +02:00
Lcl/DrawText: Fix #40324: return value set to the height
This commit is contained in:
parent
4ddf892b29
commit
05555c84d5
@ -681,6 +681,8 @@ begin
|
|||||||
{Calculate the text's bounding rect}
|
{Calculate the text's bounding rect}
|
||||||
CalcTextRect;
|
CalcTextRect;
|
||||||
|
|
||||||
|
Result:=theRect.Height;
|
||||||
|
|
||||||
{If just calculating rect, finish up here}
|
{If just calculating rect, finish up here}
|
||||||
If CalcRect then begin
|
If CalcRect then begin
|
||||||
Rect:=theRect;
|
Rect:=theRect;
|
||||||
@ -766,8 +768,6 @@ begin
|
|||||||
|
|
||||||
{Restore device-context}
|
{Restore device-context}
|
||||||
RestoreDC(DC, TDC);
|
RestoreDC(DC, TDC);
|
||||||
|
|
||||||
Result := 1;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TWidgetSet.DPtoLP(DC: HDC; var Points; Count: Integer): BOOL;
|
function TWidgetSet.DPtoLP(DC: HDC; var Points; Count: Integer): BOOL;
|
||||||
|
Loading…
Reference in New Issue
Block a user