From 6cc0a4abf0649b91dbbcec5aae5fe23d66c727ff Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 12 Nov 2012 16:49:20 +0000 Subject: [PATCH] audio-clock: fix right-alignment git-svn-id: svn://localhost/ardour2/branches/3.0@13458 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/audio_clock.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 09f7a9506a..44bc5422d8 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -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));