Debugger: Stack.CountLimited, Ensure result is always set. Mentioned in issue

(cherry picked from commit f63ba9cd3b)
This commit is contained in:
Martin 2022-09-06 16:59:35 +02:00
parent d8c23df73b
commit 289e8b9397

View File

@ -6383,9 +6383,9 @@ end;
function TIdeCallStack.CountLimited(ALimit: Integer): Integer;
begin
case HasAtLeastCount(ALimit) of
nbUnknown: Result := 0;
nbTrue: Result := ALimit;
nbFalse: Result := Count;
else Result := 0;
end;
end;