We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9ab4ae commit cfc7ca9Copy full SHA for cfc7ca9
src/chart/rendering/renderedchart.cpp
@@ -79,8 +79,10 @@ Geom::ConvexQuad Marker::pointsToQuad(double atLeastWidth) const
79
auto &&vector = points[nextIx] - points[ix];
80
if (auto &&diff = vector.abs(); diff < atLeastWidth) {
81
if (Math::Floating::is_zero(diff)) {
82
+ const auto prevIx = (ix + 3) % 4;
83
const auto nextNextIx = (nextIx + 1) % 4;
- vector = (points[nextNextIx] - points[nextIx])
84
+ vector = (points[prevIx] - points[ix]).normal(false)
85
+ + (points[nextNextIx] - points[nextIx])
86
.normal(false);
87
}
88
auto &&move =
0 commit comments