TAChart: Fix leftover tool image after unzooming in normal draw mode

git-svn-id: trunk@38901 -
This commit is contained in:
ask 2012-09-29 14:30:00 +00:00
parent e7353938a4
commit 50c1480502

View File

@ -1188,6 +1188,9 @@ begin
(dragDir <> zreClick) and not (FPrevDragDir in [dragDir, zreDifferentDrag])
then begin
FPrevDragDir := zreDifferentDrag;
if not Chart.IsZoomed and (EffectiveDrawingMode = tdmNormal) then
// ZoomFull will not cause redraw, force it to erase the tool.
Chart.StyleChanged(Self);
DoZoom(FChart.GetFullExtent, true);
exit;
end;