diff --git a/Inkpad-Core/SVG/WDSVGParser.m b/Inkpad-Core/SVG/WDSVGParser.m index 93515fd..9f38c13 100644 --- a/Inkpad-Core/SVG/WDSVGParser.m +++ b/Inkpad-Core/SVG/WDSVGParser.m @@ -197,6 +197,7 @@ - (void) checkViewBox state_.viewBoxTransform = [self preserveAspectRatio:preserve withSize:CGSizeMake(w, h) andBounds:state_.viewport]; state_.viewport = CGRectMake(x, y, w, h); state_.transform = CGAffineTransformConcat(state_.viewBoxTransform, state_.transform); + state_.transform = CGAffineTransformTranslate(state_.transform, -x, -y); } } }