IDE: fix crash on project load, if session contains (invalid) multiply (3+) bookmark on the same line. Issue #0018105

git-svn-id: trunk@28648 -
This commit is contained in:
martin 2010-12-08 14:33:49 +00:00
parent 102226c772
commit e558b5e009

View File

@ -1908,7 +1908,7 @@ begin
inc(FSetBookmarLock);
try
// Adjust bookmarks
for i := 0 to Bookmarks.Count - 1 do begin
for i := Bookmarks.Count - 1 downto 0 do begin
BookmarkID := Bookmarks[i].ID;
j := Project1.Bookmarks.IndexOfID(BookmarkID);
if (j < 0) then