mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 09:59:20 +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);
|
OnExtentChanged(Self);
|
||||||
FPrevLogicalExtent := FLogicalExtent;
|
FPrevLogicalExtent := FLogicalExtent;
|
||||||
end;
|
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;
|
end;
|
||||||
|
|
||||||
procedure TChart.DrawBackWall(ADrawer: IChartDrawer);
|
procedure TChart.DrawBackWall(ADrawer: IChartDrawer);
|
||||||
|
Loading…
Reference in New Issue
Block a user