LazMapViewer: Fix text size calculation in intfgraphics drawingengine for qt5
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9304 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
c02d8b5566
commit
2b3c16e686
@ -600,7 +600,7 @@ begin
|
||||
bmp.Canvas.Font.Name := FFontName;
|
||||
bmp.Canvas.Font.Size := FFontSize;
|
||||
bmp.Canvas.Font.Style := FFontStyle;
|
||||
R := Rect(0, 0, DEFAULT_POI_TEXT_WIDTH, 0);
|
||||
R := Rect(0, 0, DEFAULT_POI_TEXT_WIDTH, MaxInt);
|
||||
DrawText(bmp.Canvas.Handle, PChar(AText), Length(AText), R, DT_WORDBREAK + DT_CALCRECT);
|
||||
Result := Size(R.Width, R.Height);
|
||||
finally
|
||||
|
||||
Loading…
Reference in New Issue
Block a user