mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-23 17:59:12 +02:00
Merged revision(s) 62255 #410b95d666 from trunk:
TAChart: Avoid crash in unfavorable cases when cChart, NavPanel and AutoScaleAxisTransforms are on the form (https://forum.lazarus.freepascal.org/index.php/topic,47429.0.html). Patch by PaulRowntree. ........ git-svn-id: branches/fixes_2_0@62267 -
This commit is contained in:
parent
0d698264b6
commit
92378adfe6
@ -683,6 +683,12 @@ end;
|
||||
procedure TAutoScaleAxisTransform.ClearBounds;
|
||||
begin
|
||||
inherited ClearBounds;
|
||||
|
||||
// Avoid crashing when called too early, e.g. when a TNavPanel is on the form
|
||||
// https://forum.lazarus.freepascal.org/index.php/topic,47429.0.html
|
||||
if FDrawData = nil then
|
||||
exit;
|
||||
|
||||
with TAutoScaleTransformData(FDrawData) do begin
|
||||
FMin := SafeInfinity;
|
||||
FMax := NegInfinity;
|
||||
|
Loading…
Reference in New Issue
Block a user