mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
common Scene: Fix validation check for child's bounds
Fix typo. and Change return to continue. Even if the child's boundary calculation is wrong, other child's boundary should be calculated.
This commit is contained in:
parent
1bdf1c72a4
commit
676e824719
1 changed files with 2 additions and 2 deletions
|
@ -77,12 +77,12 @@ struct Scene::Impl
|
|||
auto w2 = 0.0f;
|
||||
auto h2 = 0.0f;
|
||||
|
||||
if (paint->pImpl->bounds(&x2, &y2, &w2, &h2)) return false;
|
||||
if (!paint->pImpl->bounds(&x2, &y2, &w2, &h2)) continue;
|
||||
|
||||
//Merge regions
|
||||
if (x2 < x) x = x2;
|
||||
if (x + w < x2 + w2) w = (x2 + w2) - x;
|
||||
if (y2 < y) y = x2;
|
||||
if (y2 < y) y = y2;
|
||||
if (y + h < y2 + h2) h = (y2 + h2) - y;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue