summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2012-11-12 16:49:20 +0000
committerRobin Gareus <robin@gareus.org>2012-11-12 16:49:20 +0000
commit6cc0a4abf0649b91dbbcec5aae5fe23d66c727ff (patch)
tree82c0bdbab2a5716f5839040f17da6236bb7554e5 /gtk2_ardour/audio_clock.cc
parent2c1b2256b6450ce9237678efab7ae40f2b8fb1b1 (diff)
audio-clock: fix right-alignment
git-svn-id: svn://localhost/ardour2/branches/3.0@13458 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r--gtk2_ardour/audio_clock.cc3
1 files changed, 2 insertions, 1 deletions
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));