mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
fix typo
This commit is contained in:
parent
d4515d2732
commit
d13cd37094
1 changed files with 2 additions and 2 deletions
|
@ -2255,7 +2255,7 @@ static SvgStyleGradient* _gradientDup(Array<SvgStyleGradient*>* gradients, strin
|
|||
|
||||
static void _updateGradient(SvgNode* node, Array<SvgStyleGradient*>* gradidents)
|
||||
{
|
||||
if (node->child.data > 0) {
|
||||
if (node->child.count > 0) {
|
||||
auto child = node->child.data;
|
||||
for (uint32_t i = 0; i < node->child.count; ++i, ++child) {
|
||||
_updateGradient(*child, gradidents);
|
||||
|
@ -2555,4 +2555,4 @@ unique_ptr<Scene> SvgLoader::scene()
|
|||
this->done();
|
||||
if (root) return move(root);
|
||||
else return nullptr;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue