mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 06:38:06 +02:00
Debugger: asm win, fix range check
This commit is contained in:
parent
358a6955a0
commit
2835e63366
@ -590,6 +590,9 @@ function TAssemblerDlg.GetLinMapEntryForLine(ALine: Integer; out
|
||||
AnEntry: TAsmDlgLineEntry): Boolean;
|
||||
begin
|
||||
AnEntry := Default(TAsmDlgLineEntry);
|
||||
Result := ALine >= FTopLine;
|
||||
if not Result then
|
||||
exit;
|
||||
ALine := ALine - FTopLine;
|
||||
Result := (ALine > 0) and (ALine < length(FLineMap));
|
||||
if Result then
|
||||
|
Loading…
Reference in New Issue
Block a user