mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
Try to make it easier to debug a memory read outside an array's bounds (issue #997) by putting each indexing on it's own source code line.
This commit is contained in:
@ -9164,6 +9164,7 @@ function TVirtualTreeColumns.GetColumnAndBounds(P: TPoint; var ColumnLeft, Colum
|
||||
|
||||
var
|
||||
I: Integer;
|
||||
J: Integer;
|
||||
|
||||
begin
|
||||
Result := InvalidColumn;
|
||||
@ -9175,8 +9176,9 @@ begin
|
||||
if FHeader.Treeview.UseRightToLeftAlignment then
|
||||
Inc(ColumnLeft, FHeader.Treeview.ComputeRTLOffset(True));
|
||||
|
||||
for I := 0 to Count - 1 do
|
||||
with Items[FPositionToIndex[I]] do
|
||||
for I := 0 to Count - 1 do begin
|
||||
J := FPositionToIndex[I];
|
||||
with Items[J] do
|
||||
if coVisible in FOptions then
|
||||
begin
|
||||
ColumnRight := ColumnLeft + FWidth;
|
||||
@ -9188,6 +9190,7 @@ begin
|
||||
ColumnLeft := ColumnRight;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
//----------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user