mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 04:40:36 +02:00
TAChart: Fix wmf drawer ignoring size of destination rectangle (see http://forum.lazarus.freepascal.org/index.php/topic,25972.msg158712.html).
git-svn-id: trunk@46346 -
This commit is contained in:
parent
38a1473ed5
commit
afebfc0820
@ -119,6 +119,9 @@ end;
|
||||
procedure TWindowsMetafileDrawer.DrawingBegin(const ABoundingBox: TRect);
|
||||
begin
|
||||
inherited DrawingBegin(ABoundingBox);
|
||||
FreeAndNil(FCanvas);
|
||||
FMetafile.Width := ABoundingBox.Right - ABoundingBox.Left;
|
||||
FMetafile.Height := ABoundingBox.Bottom - ABoundingBox.Top;
|
||||
if FCanvas = nil then
|
||||
FCanvas := TMetafileCanvas.Create(FMetafile, 0);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user