common: RenderRegion x, y protect against negative value in unsigned int
authorMichal Maciola <m.maciola@samsung.com>
Tue, 10 Aug 2021 15:22:37 +0000 (17:22 +0200)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 13 Aug 2021 05:21:50 +0000 (14:21 +0900)
commit6f14aad6a8d5f22eaed8719d6c2798cd17a546a8
tree7f7e5afb88a2022ee29c4acbc5831c067110aa67
parent7fc7d0e4edef123aa7f4428a80e241070435a18e
common: RenderRegion x, y protect against negative value in unsigned int

This change protects against negative value in unsigned int of
RenderRegion.x/y. This fixes a problem of invisible paint if ClipPath
bounds was negative.

@issue: #704
src/lib/tvgPaint.cpp
src/lib/tvgPictureImpl.h
src/loaders/svg/tvgSvgSceneBuilder.cpp