]> git.lyx.org Git - lyx.git/commitdiff
Button face-lift: stop shifting text under mouse
authorBo Peng <bpeng@lyx.org>
Thu, 7 Dec 2006 16:26:17 +0000 (16:26 +0000)
committerBo Peng <bpeng@lyx.org>
Thu, 7 Dec 2006 16:26:17 +0000 (16:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16203 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/Painter.C

index 3f330ea30da1004c863a55346789ca5ab9e304a2..e893aafdbb5bf0c6004ef3cf692e147fb1d25140 100644 (file)
@@ -80,10 +80,7 @@ void Painter::buttonText(int x, int y, docstring const & str,
        fm.buttonText(str, width, ascent, descent);
 
        button(x, y - ascent, width, descent + ascent, mouseHover);
-       if (mouseHover)
-               text(x + 4, y, str, font);
-       else
-               text(x + 3, y - 1, str, font);
+       text(x + 3, y - 1, str, font);
 }