mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-04 11:37:24 +01:00
qt DrawText returned wrong result if text was multiline
git-svn-id: trunk@12970 -
This commit is contained in:
parent
f90b1ff958
commit
8bc69917b1
@ -1223,7 +1223,7 @@ begin
|
||||
|
||||
|
||||
//TODO: result should be different when DT_VCENTER or DT_BOTTOM is set
|
||||
Result := QtDC.font.Metrics.height;
|
||||
Result := R.Bottom - R.Top;
|
||||
|
||||
if (Flags and DT_CALCRECT) = DT_CALCRECT then
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user