mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
fix text placement in ArdourCanvas::Flag
This commit is contained in:
parent
9be3bfa687
commit
cc2aca44fb
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue