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:
parent
8c2e351504
commit
bb8b36aa72
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue