]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiWorkArea.cpp
Aesthetics: off-by-one in line drawing
[features.git] / src / frontends / qt4 / GuiWorkArea.cpp
index e6d993c2735ad8bd16eb43c394b7e91c51ee1c51..45c4469e61e13e7d0bce1872ddbdae53feddbbd9 100644 (file)
@@ -150,9 +150,9 @@ public:
                painter.setPen(color_);
                if (l_shape_) {
                        if (rtl_)
-                               painter.drawLine(x_, bot, x_ - l, bot);
+                               painter.drawLine(x_, bot, x_ - l + 1, bot);
                        else
-                               painter.drawLine(x_, bot, x_ + caret_width_ + r, bot);
+                               painter.drawLine(x_, bot, x_ + caret_width_ + r - 1, bot);
                }
 
                // draw completion triangle