From: JunsuChoi Date: Mon, 30 Nov 2020 05:51:04 +0000 (+0900) Subject: common Scene: Fix validation check for child's bounds X-Git-Tag: accepted/tizen/unified/20201208.123223~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de7ebf6c67e48e9eb1a62488a0519f2632da91a2;p=platform%2Fcore%2Fgraphics%2Ftizenvg.git 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. Change-Id: I7e3a73046bef3eee26592a66e0d46bff2a733c8f --- diff --git a/src/lib/tvgSceneImpl.h b/src/lib/tvgSceneImpl.h index 45baac2..bb37c32 100644 --- a/src/lib/tvgSceneImpl.h +++ b/src/lib/tvgSceneImpl.h @@ -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; }