From 0420b13055ebf75cd59c3358bda852784d19c55b Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Mon, 20 Jan 2020 15:58:27 +0000 Subject: [PATCH] Fix typo in agg_bezier_arc initialisation. --- deps/agg/src/agg_bezier_arc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deps/agg/src/agg_bezier_arc.cpp b/deps/agg/src/agg_bezier_arc.cpp index bb5ffc464..b39a77fad 100644 --- a/deps/agg/src/agg_bezier_arc.cpp +++ b/deps/agg/src/agg_bezier_arc.cpp @@ -144,7 +144,7 @@ void bezier_arc_svg::init(double x0, double y0, m_radii_ok = true; if(rx < 0.0) rx = -rx; - if(ry < 0.0) ry = -rx; + if(ry < 0.0) ry = -ry; // Calculate the middle point between // the current and the final points @@ -178,7 +178,6 @@ void bezier_arc_svg::init(double x0, double y0, pry = ry * ry; if(radii_check > 10.0) m_radii_ok = false; } - // Calculate (cx1, cy1) //------------------------ double sign = (large_arc_flag == sweep_flag) ? -1.0 : 1.0;