X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fflag.cc;h=2d0bdb28305bb764a6215a60977c5627da8eff92;hb=c8c6bca6587450ff64303dbc994a4cd28d6ce7aa;hp=87c3cc281c86043fdf075f21497d67b2df8d9974;hpb=ced4378d0914bcfb926267772c45d1d23f3bed38;p=ardour.git diff --git a/libs/canvas/flag.cc b/libs/canvas/flag.cc index 87c3cc281c..2d0bdb2830 100644 --- a/libs/canvas/flag.cc +++ b/libs/canvas/flag.cc @@ -43,7 +43,7 @@ Flag::Flag (Item* parent, Distance height, Color outline_color, Color fill_color setup (height, position); } -void +void Flag::setup (Distance height, Duple position) { _text = new Text (this); @@ -77,7 +77,7 @@ Flag::set_text (string const & text) assert (bbox); Duple flag_size (bbox.get().width() + 10, bbox.get().height() + 4); - + if (_invert) { const Distance h = fabs(_line->y1() - _line->y0()); _text->set_position (Duple (5, h - flag_size.y + 2)); @@ -108,7 +108,7 @@ Flag::covers (Duple const & point) const { if (_rectangle) { return _rectangle->covers (point); - } + } return false; }