projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9be3bfa
)
fix text placement in ArdourCanvas::Flag
author
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 11 Feb 2014 17:40:44 +0000
(12:40 -0500)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 11 Feb 2014 17:40:44 +0000
(12:40 -0500)
libs/canvas/flag.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/flag.cc
b/libs/canvas/flag.cc
index 756b54545fd0d547a93f5d8a53f5802e41b263b0..495df3435373df02ce9f6054bc307693a5295fb1 100644
(file)
--- a/
libs/canvas/flag.cc
+++ b/
libs/canvas/flag.cc
@@
-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));
}