Fix depth bar optics

This commit is contained in:
Daniel Ramoeller 2020-08-13 16:36:15 +02:00 committed by Jean-Marc Lasgouttes
parent ef5f142b9a
commit 92aeaf5d73

View File

@ -352,12 +352,12 @@ void RowPainter::paintDepthBar() const
int const starty = yo_ - row_.ascent();
int const h = row_.height() - 1 - (i - next_depth - 1) * 3;
pi_.pain.line(x, starty, x, starty + h, Color_depthbar);
pi_.pain.line(x, starty + (i > prev_depth ? 1 : 0), x, starty + h, Color_depthbar);
if (i > prev_depth)
pi_.pain.fillRectangle(x, starty, w, 2, Color_depthbar);
if (i > next_depth)
pi_.pain.fillRectangle(x, starty + h, w, 2, Color_depthbar);
pi_.pain.fillRectangle(x, starty + h - 1, w, 2, Color_depthbar);
}
}