13
0

audio-clock: fix right-alignment

git-svn-id: svn://localhost/ardour2/branches/3.0@13458 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Robin Gareus 2012-11-12 16:49:20 +00:00
parent 2c1b2256b6
commit 6cc0a4abf0

View File

@ -350,8 +350,9 @@ AudioClock::render (cairo_t* cr)
*/
int x, rw, rh;
_right_layout->get_pixel_size(rw, rh);
x = get_width() - rw- separator_height - x_leading_padding;
x = get_width() - rw - separator_height - x_leading_padding - corner_radius/2.0;
if (x < x_leading_padding + left_rect_width + separator_height) {
/* rather cut off the right end than overlap with the text on the left */
x = x_leading_padding + left_rect_width + separator_height;
}
cairo_move_to (cr, x, upper_height + separator_height + ((h - info_height)/2.0));