Merge branch 'kkaefer-fix-svg-smooth-curve-after-arc'

This commit is contained in:
Artem Pavlenko 2022-10-18 14:14:57 +01:00
commit 05661e5439
2 changed files with 11 additions and 8 deletions

View file

@ -981,10 +981,11 @@ namespace agg
{
join_path(a);
}
else
{
line_to(x, y);
}
// We are adding an explicit line_to, even if we've already add the
// bezier arc to the current path. This is to prevent subsequent smooth
// bezier curves from accidentally assuming that the previous command
// was a bezier curve as well when calculating reflection points.
line_to(x, y);
}
else
{

View file

@ -382,10 +382,12 @@ void path_adapter<VC>::arc_to(double rx,
{
join_path(a);
}
else
{
line_to(x, y);
}
// We are adding an explicit line_to, even if we've already add the
// bezier arc to the current path. This is to prevent subsequent smooth
// bezier curves from accidentally assuming that the previous command
// was a bezier curve as well when calculating reflection points.
line_to(x, y);
}
else
{