mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 10:36:00 +02:00
TAChart: Fix division by zero in TZoomClickTool
git-svn-id: trunk@29749 -
This commit is contained in:
parent
d378e66c95
commit
ae4239028a
@ -922,7 +922,7 @@ var
|
||||
sz, center, ratio, zoom: TDoublePoint;
|
||||
ext: TDoubleRect;
|
||||
begin
|
||||
if ZoomFactor <= 0 then exit;
|
||||
if (ZoomFactor <= 0) or (ZoomRatio <= 0) then exit;
|
||||
ext := FChart.LogicalExtent;
|
||||
center := FChart.ImageToGraph(APoint);
|
||||
sz := ext.b - ext.a;
|
||||
|
Loading…
Reference in New Issue
Block a user