Changeset 126 for trunk/UTarget.pas
- Timestamp:
- Jan 14, 2022, 7:13:36 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTarget.pas
r125 r126 289 289 Last := SearchIndexByProgramPos(OldProgramTo); 290 290 for I := Last downto First + 1 do Delete(I); 291 Items[First].ProgramPosition := NewProgram; 292 Items[First].TargetPosition := NewTarget; 293 end; 294 291 if NewProgram = -1 then begin 292 Delete(First); 293 end else begin 294 if (First >= 0) and (First < Count) then begin 295 Items[First].ProgramPosition := NewProgram; 296 Items[First].TargetPosition := NewTarget; 297 end else begin 298 // Index not found, possible new command? 299 end; 300 end; 301 end; 295 302 296 303 { TTargetList }
Note:
See TracChangeset
for help on using the changeset viewer.