mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
23c3ed57f1
commit
16072b8e09
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user