mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 18:23:46 +02:00
* Callstack improvement by Martin Friebe
git-svn-id: trunk@14493 -
This commit is contained in:
parent
61b5aa81fb
commit
b23a60a435
@ -403,6 +403,13 @@ end;
|
||||
procedure TCallStackDlg.SetViewLimit(const AValue: Integer);
|
||||
begin
|
||||
if FViewLimit = AValue then Exit;
|
||||
if (CallStack <> nil)
|
||||
and (FViewStart + FViewLimit >= CallStack.Count - 1)
|
||||
and (AValue > FViewLimit)
|
||||
then begin
|
||||
FViewStart := CallStack.Count - 1 - AValue;
|
||||
if FViewStart < 0 then FViewStart := 0;
|
||||
end;
|
||||
FViewLimit := AValue;
|
||||
UpdateView;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user