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:
wp 2014-12-14 21:24:30 +00:00
parent 0b179b19ec
commit 53d40ddb63

View File

@ -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);