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);
|
||||
}
|
||||
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
|
||||
{
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue