Fix typo in agg_bezier_arc initialisation.

This commit is contained in:
Artem Pavlenko 2020-01-20 15:58:27 +00:00
parent 60a33a9b8f
commit 0420b13055

View file

@ -144,7 +144,7 @@ void bezier_arc_svg::init(double x0, double y0,
m_radii_ok = true; m_radii_ok = true;
if(rx < 0.0) rx = -rx; if(rx < 0.0) rx = -rx;
if(ry < 0.0) ry = -rx; if(ry < 0.0) ry = -ry;
// Calculate the middle point between // Calculate the middle point between
// the current and the final points // the current and the final points
@ -178,7 +178,6 @@ void bezier_arc_svg::init(double x0, double y0,
pry = ry * ry; pry = ry * ry;
if(radii_check > 10.0) m_radii_ok = false; if(radii_check > 10.0) m_radii_ok = false;
} }
// Calculate (cx1, cy1) // Calculate (cx1, cy1)
//------------------------ //------------------------
double sign = (large_arc_flag == sweep_flag) ? -1.0 : 1.0; double sign = (large_arc_flag == sweep_flag) ? -1.0 : 1.0;