Fix typo in agg_bezier_arc initialisation.
This commit is contained in:
parent
60a33a9b8f
commit
0420b13055
1 changed files with 1 additions and 2 deletions
3
deps/agg/src/agg_bezier_arc.cpp
vendored
3
deps/agg/src/agg_bezier_arc.cpp
vendored
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue