vertically center text in time rulers
This commit is contained in:
parent
6bbb2c72f0
commit
218d376154
@ -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…
Reference in New Issue
Block a user