* Callstack improvement by Martin Friebe

git-svn-id: trunk@14493 -
This commit is contained in:
marc 2008-03-11 00:32:30 +00:00
parent 61b5aa81fb
commit b23a60a435

View File

@ -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;