From: Magnus Jacobsson Date: Mon, 10 Oct 2022 06:41:06 +0000 (+0200) Subject: tests: SVGAnalyzer: correct fallback to bevel in SVGElement::miter_point X-Git-Tag: 7.0.0~21^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b88c733fa17256ce428a1d474bf4bc048009f49d;p=graphviz tests: SVGAnalyzer: correct fallback to bevel in SVGElement::miter_point This corrects a mistake made in a8b2c299931c9c7037a67e9064b4749390655c0c. --- diff --git a/tests/svg_element.cpp b/tests/svg_element.cpp index d2eae728c..5e1b2d9d5 100644 --- a/tests/svg_element.cpp +++ b/tests/svg_element.cpp @@ -842,7 +842,7 @@ SVG::SVGElement::miter_point(SVG::SVGPoint segment_start, const auto sinBetaMinusPi = -sinBeta; const auto cosBetaMinusPi = -cosBeta; const SVG::SVGPoint P2 = {P.x + stroke_width / 2.0 * sinBetaMinusPi, - P.y + stroke_width / 2.0 * cosBetaMinusPi}; + P.y - stroke_width / 2.0 * cosBetaMinusPi}; // the bevel is the triangle formed from the three points P, P1 and P2 so // a good enough approximation of the miter point in this case is the