summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_button.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-09-09 00:43:32 +0200
committerRobin Gareus <robin@gareus.org>2014-09-09 00:43:32 +0200
commit78b2b0d28e35e723afcca80eb05bc3d82832da3d (patch)
treeb709ed77e099adb55de565eaf7f9e54a54b8b509 /gtk2_ardour/ardour_button.cc
parentff5b658bc28fd6c96d4273d804041c2138b305b2 (diff)
tweak button text y-alignment
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r--gtk2_ardour/ardour_button.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc
index f2d6d142e7..84708feb2f 100644
--- a/gtk2_ardour/ardour_button.cc
+++ b/gtk2_ardour/ardour_button.cc
@@ -426,7 +426,7 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *)
*/
if (_xalign < 0) xa = ceil(.5 + (ww * fabs(_xalign) + text_margin));
- cairo_move_to (cr, xa, ya);
+ cairo_move_to (cr, xa, floor(ya));
pango_cairo_update_layout(cr, _layout->gobj());
pango_cairo_show_layout (cr, _layout->gobj());
cairo_restore (cr);