]> git.lyx.org Git - lyx.git/blobdiff - src/RowPainter.cpp
Fix functions that used functions but did not defined it
[lyx.git] / src / RowPainter.cpp
index b8c0a67b5e87ae47f76c56f5212511cf6e3f18b6..e84343a7aa6ada4193a6317322e4dca9a9544da6 100644 (file)
@@ -313,7 +313,7 @@ void RowPainter::paintAppendix() const
        if (par_.params().startOfAppendix())
                y += 2 * defaultRowHeight();
 
-       pi_.pain.line(1, y, 1, yo_ + row_.height(), Color_appendix);
+       pi_.pain.line(1, y, 1, yo_ + row_.descent(), Color_appendix);
        pi_.pain.line(tm_.width() - 2, y, tm_.width() - 2, yo_ + row_.descent(), Color_appendix);
 }
 
@@ -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);
        }
 }