Debugger: Callstack-Dialog: Fixed, don't call CountLimited with more "+1" than needed.

This commit is contained in:
Martin 2022-09-10 16:21:33 +02:00
parent db69b34e2a
commit 9487022e01

View File

@ -299,7 +299,7 @@ begin
FInUpdateView := True; // ignore change triggered by count, if there is a change event, then Count will be updated already
CStack := GetSelectedCallstack;
MaxCnt := FViewStart + FViewLimit + 1;
MaxCnt := FViewStart + FViewLimit;
if CStack <> nil then CStack.CountLimited(MaxCnt); // trigger the update-notification, if executed immediately
FInUpdateView := False;
// TODO: must make CStack ref-counted