vertically center text in time rulers

This commit is contained in:
Robin Gareus 2016-12-19 13:24:20 +01:00
parent 6bbb2c72f0
commit 218d376154

View File

@ -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);
}