diff --git a/Source/X2CLGraphicList.pas b/Source/X2CLGraphicList.pas index c0810fd..cf2bf59 100644 --- a/Source/X2CLGraphicList.pas +++ b/Source/X2CLGraphicList.pas @@ -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;