projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b322071
)
svg_loader: fixing viewBox clipping
author
Mira Grudzinska
<m.grudzinska@samsung.com>
Thu, 14 Oct 2021 00:12:49 +0000
(
02:12
+0200)
committer
JunsuChoi
<jsuya.choi@samsung.com>
Wed, 20 Oct 2021 04:50:36 +0000
(13:50 +0900)
For vw=width and vh=height, vx or vy > 0 had no effect. Fixed
src/loaders/svg/tvgSvgSceneBuilder.cpp
patch
|
blob
|
history
diff --git
a/src/loaders/svg/tvgSvgSceneBuilder.cpp
b/src/loaders/svg/tvgSvgSceneBuilder.cpp
index
08f7875
..
25fe5a7
100644
(file)
--- a/
src/loaders/svg/tvgSvgSceneBuilder.cpp
+++ b/
src/loaders/svg/tvgSvgSceneBuilder.cpp
@@
-548,7
+548,7
@@
unique_ptr<Scene> svgSceneBuild(SvgNode* node, float vx, float vy, float vw, flo
Matrix m = {sx, 0, -tvx, 0, sy, -tvy, 0, 0, 1};
docNode->transform(m);
}
- } else if (
vx < 0 || vy < 0
) {
+ } else if (
fabs(vx) > FLT_EPSILON || fabs(vy) > FLT_EPSILON
) {
docNode->translate(-vx, -vy);
}