Fixup 7485225c: better placement of deph bar

Fixes #12243.

(cherry picked from commit a64244b844)
This commit is contained in:
Jean-Marc Lasgouttes 2022-01-19 18:08:47 +01:00 committed by Richard Kimberly Heck
parent cfd3abbdb0
commit 483d4466fd

View File

@ -313,9 +313,9 @@ void RowPainter::paintDepthBar() const
for (depth_type i = 1; i <= depth; ++i) {
int const w = nestMargin() / 5;
int x = int(xo_) + w * i;
// consider the bufferview left margin if we're drawing outermost text
// only consider the changebar space if we're drawing outermost text
if (text_.isMainText())
x += pi_.base.bv->leftMargin();
x += pi_.base.bv->leftMargin() - changebarMargin();
int const starty = yo_ - row_.ascent();
int const h = row_.height() - 1 - (i - next_depth - 1) * 3;