]> git.lyx.org Git - features.git/commitdiff
Fix bug 3187 (second round) by Martin V.:
authorAbdelrazak Younes <younes@lyx.org>
Wed, 7 Feb 2007 17:08:24 +0000 (17:08 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 7 Feb 2007 17:08:24 +0000 (17:08 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=3187

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17089 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insettext.C

index d2cc25c2f09e04dd8a26c26cadc38623f62d7d22..23096b7ae41bd3f389197040d2fae0efca39e026 100644 (file)
@@ -212,7 +212,7 @@ void InsetText::drawSelection(PainterInfo & pi, int x, int y) const
        int const h = a + tm.descent() + border_;
        pi.pain.fillRectangle(x, y - a, (wide() ? tm.maxWidth() : w), h,
                backgroundColor());
-       text_.drawSelection(pi, x, y);
+       text_.drawSelection(pi, x + border_, y);
 }