Fixed: ByName functions should work on PictureName instead of Name

This commit is contained in:
Mark van Renswoude 2010-07-20 10:04:45 +00:00
parent 131f05711d
commit 9feef16168
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ begin
Result := -1;
for graphicIndex := Pred(GraphicCount) downto 0 do
if SameText(Graphics[graphicIndex].Name, AName) then
if SameText(Graphics[graphicIndex].PictureName, AName) then
begin
Result := graphicIndex;
break;