Merge branch 'kkaefer-fix-svg-smooth-curve-after-arc'
This commit is contained in:
commit
05661e5439
2 changed files with 11 additions and 8 deletions
9
deps/agg/include/agg_path_storage.h
vendored
9
deps/agg/include/agg_path_storage.h
vendored
|
@ -981,10 +981,11 @@ 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
|
||||||
line_to(x, y);
|
// bezier curves from accidentally assuming that the previous command
|
||||||
}
|
// was a bezier curve as well when calculating reflection points.
|
||||||
|
line_to(x, y);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -382,10 +382,12 @@ void path_adapter<VC>::arc_to(double rx,
|
||||||
{
|
{
|
||||||
join_path(a);
|
join_path(a);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
// We are adding an explicit line_to, even if we've already add the
|
||||||
line_to(x, y);
|
// 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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue