mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 15:19:35 +02:00
TAChart: At the end of TChart.Draw(), undo changes made to the drawer by the drawer (issue #0027163).
git-svn-id: trunk@47195 -
This commit is contained in:
parent
0b179b19ec
commit
53d40ddb63
@ -861,6 +861,15 @@ begin
|
||||
OnExtentChanged(Self);
|
||||
FPrevLogicalExtent := FLogicalExtent;
|
||||
end;
|
||||
|
||||
// Undo changes made by the drawer (mainly for printing). The user may print
|
||||
// something else after the chart and, for example, would not expect the font
|
||||
// to be rotated.
|
||||
// (Workaround for issue #0027163)
|
||||
ADrawer.SetGetFontOrientationFunc(nil);
|
||||
ADrawer.SetPenParams(psSolid, clDefault);
|
||||
ADrawer.SetBrushParams(bsSolid, clWhite);
|
||||
ADrawer.SetAntialiasingMode(amDontCare);
|
||||
end;
|
||||
|
||||
procedure TChart.DrawBackWall(ADrawer: IChartDrawer);
|
||||
|
Loading…
Reference in New Issue
Block a user