mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
vertically center text in time rulers
This commit is contained in:
parent
6bbb2c72f0
commit
218d376154
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ Ruler::render (Rect const & area, Cairo::RefPtr<Cairo::Context> cr) const
|
|||
if (_divide_height >= 0) {
|
||||
cr->move_to (pos.x + 2.0, self.y0 + _divide_height + logical.get_y() + 2.0); /* 2 pixel padding below divider */
|
||||
} else {
|
||||
cr->move_to (pos.x + 2.0, self.y0 + logical.get_y());
|
||||
cr->move_to (pos.x + 2.0, self.y0 + logical.get_y() + .5 * (height - logical.get_height()));
|
||||
}
|
||||
layout->show_in_cairo_context (cr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue