Fixed: ByName functions should work on PictureName instead of Name
This commit is contained in:
parent
131f05711d
commit
9feef16168
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user