mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 21:40:20 +02:00
TAChart: Fix leftover tool image after unzooming in normal draw mode
git-svn-id: trunk@38901 -
This commit is contained in:
parent
e7353938a4
commit
50c1480502
@ -1188,6 +1188,9 @@ begin
|
|||||||
(dragDir <> zreClick) and not (FPrevDragDir in [dragDir, zreDifferentDrag])
|
(dragDir <> zreClick) and not (FPrevDragDir in [dragDir, zreDifferentDrag])
|
||||||
then begin
|
then begin
|
||||||
FPrevDragDir := zreDifferentDrag;
|
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);
|
DoZoom(FChart.GetFullExtent, true);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user