Apply fix from #4357 to agg_path_storage

This commit is contained in:
Artem Pavlenko 2022-10-18 14:13:35 +01:00
parent 618ddef663
commit 02af1f606c

View file

@ -981,11 +981,12 @@ namespace agg
{ {
join_path(a); join_path(a);
} }
else // 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); line_to(x, y);
} }
}
else else
{ {
move_to(x, y); move_to(x, y);