Browse Source

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

tags/2021-05-28
jules 10 years ago
parent
commit
bbbe451b7d
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      modules/juce_gui_basics/drawables/juce_SVGParser.cpp

+ 6
- 0
modules/juce_gui_basics/drawables/juce_SVGParser.cpp 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
{


Loading…
Cancel
Save