1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

Fixed bug where Introjucer would produce invalid code in case two images added via the GUI editor use the same image resource

This commit is contained in:
Timur Doumler 2015-05-13 12:50:18 +01:00
parent 8c2e351504
commit bb8b36aa72

View file

@ -100,7 +100,7 @@ public:
{
if (dynamic_cast <const DrawableImage*> (getDrawable()) != 0)
{
const String imageVariable ("cachedImage_" + resourceName.replace ("::", "_"));
const String imageVariable ("cachedImage_" + resourceName.replace ("::", "_") + "_" + String (code.getUniqueSuffix()));
code.addImageResourceLoader (imageVariable, resourceName);