mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
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:
parent
2c1b2256b6
commit
6cc0a4abf0
1 changed files with 2 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue