Great,
its actually a "three"-liner:
setName() ocurres three times in juce_SVGParser.cpp.
--- modules/juce_gui_basics/drawables/juce_SVGParser.cpp (revision 61)
+++ modules/juce_gui_basics/drawables/juce_SVGParser.cpp (working copy)
@@ -49,12 +49,12 @@
//==============================================================================
Drawable* parseSVGElement (const XmlPath& xml)
{
if (! xml->hasTagNameIgnoringNamespace ("svg"))
return nullptr;
DrawableComposite* const drawable = new DrawableComposite();
- drawable->setName (xml->getStringAttribute ("id"));
+ drawable->setComponentID (xml->getStringAttribute ("id"));
SVGState newState (*this);
@@ -397,7 +397,7 @@
{
DrawableComposite* const drawable = new DrawableComposite();
- drawable->setName (xml->getStringAttribute ("id"));
+ drawable->setComponentID (xml->getStringAttribute ("id"));
if (xml->hasAttribute ("transform"))
{
@@ -542,7 +542,7 @@
}
DrawablePath* dp = new DrawablePath();
- dp->setName (xml->getStringAttribute ("id"));
+ dp->setComponentID (xml->getStringAttribute ("id"));
dp->setFill (Colours::transparentBlack);
path.applyTransform (transform);