projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a99331a
)
amend incomplete change in previous commit.
author
nick_m
<mainsbridge@gmail.com>
Thu, 15 Dec 2016 15:01:50 +0000
(
02:01
+1100)
committer
nick_m
<mainsbridge@gmail.com>
Thu, 15 Dec 2016 15:01:50 +0000
(
02:01
+1100)
libs/canvas/flag.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/flag.cc
b/libs/canvas/flag.cc
index 9fa59dbbd5072332e2d0a4078ffd0144def451a9..a6da8b727e90a03f63e8b96862bc0a6a699346bb 100644
(file)
--- a/
libs/canvas/flag.cc
+++ b/
libs/canvas/flag.cc
@@
-72,13
+72,14
@@
Flag::set_font_description (Pango::FontDescription font_description)
void
Flag::set_text (string const & text)
{
- if (text.empty ()) {
- _text->set (" ");
- } else if (text == _text->text()) {
+ if (text == _text->text()) {
return;
+ } else if (text.empty ()) {
+ _text->set (" ");
} else {
_text->set (text);
}
+
boost::optional<Rect> bbox = _text->bounding_box ();
assert (bbox);