commit a64244b844e613aa0f739e050aa23168ff21fce9
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Wed Jan 19 18:08:47 2022 +0100

    Fixup 7485225c: better placement of deph bar
    
    Fixes #12243.
---
 src/RowPainter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp
index c49b5e6..cffdcf2 100644
--- a/src/RowPainter.cpp
+++ b/src/RowPainter.cpp
@@ -343,9 +343,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;
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to