From 02af1f606c8a35d261eff642553634f2b9433950 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 18 Oct 2022 14:13:35 +0100 Subject: [PATCH] Apply fix from #4357 to agg_path_storage --- deps/agg/include/agg_path_storage.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/deps/agg/include/agg_path_storage.h b/deps/agg/include/agg_path_storage.h index 338fbd513..38ba64b12 100644 --- a/deps/agg/include/agg_path_storage.h +++ b/deps/agg/include/agg_path_storage.h @@ -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 {