13
0

fix text placement in ArdourCanvas::Flag

This commit is contained in:
Paul Davis 2014-02-11 12:40:44 -05:00
parent 9be3bfa687
commit cc2aca44fb

View File

@ -55,9 +55,9 @@ Flag::set_text (string const & text)
boost::optional<Rect> bbox = _text->bounding_box (); boost::optional<Rect> bbox = _text->bounding_box ();
assert (bbox); assert (bbox);
Duple flag_size (bbox.get().width() + 10, bbox.get().height() + 3); Duple flag_size (bbox.get().width() + 10, bbox.get().height() + 4);
_text->set_position (flag_size / 2); _text->set_position (Duple (5, 2));
_rectangle->set (Rect (0, 0, flag_size.x, flag_size.y)); _rectangle->set (Rect (0, 0, flag_size.x, flag_size.y));
} }