mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
svg_loader: after reading an unsupported style attribute no other values were loaded
After finding an unsupported style attribute the log is printed (on request) and processing of other values continues.
This commit is contained in:
parent
e0a1aa9355
commit
20e926c950
1 changed files with 8 additions and 1 deletions
|
@ -503,7 +503,14 @@ bool simpleXmlParseW3CAttribute(const char* buf, simpleXMLAttributeCb func, cons
|
|||
}
|
||||
|
||||
if (key[0]) {
|
||||
if (!func((void*)data, key, val)) return false;
|
||||
|
||||
#ifdef THORVG_LOG_ENABLED
|
||||
if (!func((void*)data, key, val)) {
|
||||
if (!_isIgnoreUnsupportedLogAttributes(key, val)) printf("SVG: Unsupported attributes used [Elements type: %s][Id : %s][Attribute: %s][Value: %s]\n", simpleXmlNodeTypeToString(((SvgLoaderData*)data)->svgParse->node->type).c_str(), ((SvgLoaderData*)data)->svgParse->node->id ? ((SvgLoaderData*)data)->svgParse->node->id->c_str() : "NO_ID", key, val ? val : "NONE");
|
||||
}
|
||||
#else
|
||||
func((void*)data, key, val);
|
||||
#endif
|
||||
}
|
||||
|
||||
buf = next + 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue