fix text placement in ArdourCanvas::Flag
This commit is contained in:
parent
9be3bfa687
commit
cc2aca44fb
@ -55,9 +55,9 @@ Flag::set_text (string const & text)
|
||||
boost::optional<Rect> bbox = _text->bounding_box ();
|
||||
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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user