X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Fline_set.cc;h=03f2f0abf1a50b89d29d70208b12b36defbc464a;hb=c80e8727dffd2a0958ae377aff5f0e7e2904770f;hp=54fe980b1c03ffbb55aa6616e5bbb1a253f1986b;hpb=ff46a3c3a216afc97fee0c796ac2eaa92d58becb;p=ardour.git diff --git a/libs/canvas/line_set.cc b/libs/canvas/line_set.cc index 54fe980b1c..03f2f0abf1 100644 --- a/libs/canvas/line_set.cc +++ b/libs/canvas/line_set.cc @@ -54,7 +54,7 @@ LineSet::compute_bounding_box () const } else { if (_orientation == Horizontal) { - + _bounding_box = Rect (0, /* x0 */ _lines.front().pos - (_lines.front().width/2.0), /* y0 */ _extent, /* x1 */ @@ -62,7 +62,7 @@ LineSet::compute_bounding_box () const ); } else { - + _bounding_box = Rect (_lines.front().pos - _lines.front().width/2.0, /* x0 */ 0, /* y0 */ _lines.back().pos + _lines.back().width/2.0, /* x1 */ @@ -101,9 +101,9 @@ LineSet::render (Rect const & area, Cairo::RefPtr context) const } boost::optional isect = self.intersection (area); - + if (!isect) { - continue; + continue; } Rect intersection (isect.get()); @@ -134,7 +134,7 @@ void LineSet::add (Coord y, Distance width, Color color) { begin_change (); - + _lines.push_back (Line (y, width, color)); sort (_lines.begin(), _lines.end(), LineSorter());