Change-Id: I4ae7242816febbddf7b6d1cd05fffe3b8abc0fa6
static SvgNode* _findNodeById(SvgNode *node, string* id)
{
SvgNode* result = nullptr;
- if ((node->id != nullptr) && !node->id->compare(*id)) return node;
+ if (node->id && !node->id->compare(*id)) return node;
if (node->child.cnt > 0) {
auto child = node->child.list;
(*child)->style->opacity = ((*child)->style->opacity * node->style->opacity) / 255.0f;
scene->push(_shapeBuildHelper(*child, vx, vy, vw, vh));
}
-
+ }
//Apply composite node
if (node->style->comp.node) {
- //Composite ClipPath
+ //Composite ClipPath
if (((int)node->style->comp.flags & (int)SvgCompositeFlags::ClipPath)) {
auto compNode = node->style->comp.node;
if (compNode->child.cnt > 0) {
}
}
}
- }
}
return scene;
}