From 9feef16168f819a9ee3d3cddc3199643dc49d2ae Mon Sep 17 00:00:00 2001 From: Mark van Renswoude Date: Tue, 20 Jul 2010 10:04:45 +0000 Subject: [PATCH] Fixed: ByName functions should work on PictureName instead of Name --- Source/X2CLGraphicList.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;