Button face-lift: stop shifting text under mouse

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16203 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2006-12-07 16:26:17 +00:00
parent 23c3ed57f1
commit 16072b8e09

View File

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