Logarithmic Axis Bug (v.8.01.10798)
Posted: Sun Sep 30, 2007 7:57 pm
I just uploaded to Steema upload page an example revealing a bug in
Logarithmic axis mode (file LogAxisBug.zip).
The project includes a precompiled executable. The bug is clearly seen in
debug mode when the project was compiled with range check = on.
The exception raises in the "TeEngine.pas" (version 8.01.10798, September
release), around lines 4578-4579:
if tmpNumTicks>0 then // 7.0 fix first tick
begin
tmpValue:=CalcPosPoint(Tick[tmpNumTicks-1])/LogarithmicBase;
DrawLogMinorTicks(tmpValue);
for t:=-1 to tmpNumTicks-3 do
DrawLogMinorTicks(CalcPosPoint(Tick[t]));
It is obvious, that the index of dynamic array Tick is -1 in this loop!
I am using Delphi 2007 + SP3
Best regards,
Michael
Logarithmic axis mode (file LogAxisBug.zip).
The project includes a precompiled executable. The bug is clearly seen in
debug mode when the project was compiled with range check = on.
The exception raises in the "TeEngine.pas" (version 8.01.10798, September
release), around lines 4578-4579:
if tmpNumTicks>0 then // 7.0 fix first tick
begin
tmpValue:=CalcPosPoint(Tick[tmpNumTicks-1])/LogarithmicBase;
DrawLogMinorTicks(tmpValue);
for t:=-1 to tmpNumTicks-3 do
DrawLogMinorTicks(CalcPosPoint(Tick[t]));
It is obvious, that the index of dynamic array Tick is -1 in this loop!
I am using Delphi 2007 + SP3
Best regards,
Michael