Skip to content

Commit 97b5787

Browse files
committed
Fixed missing last interlacing lane in negative chart areas
1 parent 64de11c commit 97b5787

File tree

3 files changed

+104
-103
lines changed

3 files changed

+104
-103
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
- Fixed unwanted partial fade of non-changing legend when switched
2525
between auto and explicit value.
2626
- Area/Line fade easing base made linear.
27+
- Fixed missing last interlacing lane in negative chart areas
2728

2829
## [0.5.2] - 2022-08-29
2930

src/chart/rendering/drawinterlacing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void drawInterlacing::draw(bool horizontal,
9595
auto axisBottom = axis.origo() + stripWidth;
9696

9797
int iMin = axisBottom > 0
98-
? -std::trunc(axisBottom/(2 * stripWidth))
98+
? std::floor(-axis.origo()/(2 * stripWidth))
9999
: 0;
100100

101101
if (stripWidth <= 0) return;

0 commit comments

Comments
 (0)