From be49378e9294f8e6026a359fbe4b040479e27326 Mon Sep 17 00:00:00 2001 From: fmalita Date: Wed, 17 Aug 2016 15:08:48 -0700 Subject: [PATCH] [SVGDom] Fix positioning R=robertphillips@google.com,stephana@google.com GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2253283002 Review-Url: https://codereview.chromium.org/2253283002 --- experimental/svg/model/SkSVGEllipse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/experimental/svg/model/SkSVGEllipse.cpp b/experimental/svg/model/SkSVGEllipse.cpp index a70a8e019c..f7461b8cd7 100644 --- a/experimental/svg/model/SkSVGEllipse.cpp +++ b/experimental/svg/model/SkSVGEllipse.cpp @@ -63,6 +63,6 @@ void SkSVGEllipse::onDraw(SkCanvas* canvas, const SkSVGLengthContext& lctx, const auto ry = lctx.resolve(fRy, SkSVGLengthContext::LengthType::kVertical); if (rx > 0 && ry > 0) { - canvas->drawOval(SkRect::MakeXYWH(cx - rx / 2, cy - ry / 2, rx * 2, ry * 2), paint); + canvas->drawOval(SkRect::MakeXYWH(cx - rx, cy - ry, rx * 2, ry * 2), paint); } }