diff options
author | nick_m <mainsbridge@gmail.com> | 2016-12-16 02:01:50 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-12-16 02:01:50 +1100 |
commit | 9afe719827ca46d25833b842d9605b6e4db5c7f3 (patch) | |
tree | 044f3cf95c69df0ddf3d2c6c05ea65387019aaad /libs/canvas | |
parent | a99331a4e946390609d7c158c843f2a14aee0bd2 (diff) |
amend incomplete change in previous commit.
Diffstat (limited to 'libs/canvas')
-rw-r--r-- | libs/canvas/flag.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/canvas/flag.cc b/libs/canvas/flag.cc index 9fa59dbbd5..a6da8b727e 100644 --- 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); |