1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added a workaround to the SVG parser to let it display <a> tags

This commit is contained in:
jules 2015-09-11 09:49:38 +01:00
parent 5cef7c8e79
commit bbbe451b7d

View file

@ -377,6 +377,7 @@ private:
if (tag == "polygon") return parsePolygon (xml, false);
if (tag == "text") return parseText (xml, true);
if (tag == "switch") return parseSwitch (xml);
if (tag == "a") return parseLinkElement (xml);
if (tag == "style") parseCSSStyle (xml);
return nullptr;
@ -412,6 +413,11 @@ private:
return drawable;
}
DrawableComposite* parseLinkElement (const XmlPath& xml)
{
return parseGroupElement (xml); // TODO: support for making this clickable
}
//==============================================================================
Drawable* parsePath (const XmlPath& xml) const
{