mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-13 19:44:28 +00:00
svg_loader SvgLoader: Prevent invalid access
If there is no path information, it is not copied.
This commit is contained in:
parent
ea668eae1d
commit
a2d348242b
1 changed files with 1 additions and 1 deletions
|
@ -1621,7 +1621,7 @@ static void _copyAttr(SvgNode* to, const SvgNode* from)
|
|||
break;
|
||||
}
|
||||
case SvgNodeType::Path: {
|
||||
to->node.path.path = new string(from->node.path.path->c_str());
|
||||
if (from->node.path.path) to->node.path.path = new string(from->node.path.path->c_str());
|
||||
break;
|
||||
}
|
||||
case SvgNodeType::Polygon: {
|
||||
|
|
Loading…
Add table
Reference in a new issue