} else {
if (_orientation == Horizontal) {
-
+
_bounding_box = Rect (0, /* x0 */
_lines.front().pos - (_lines.front().width/2.0), /* y0 */
_extent, /* x1 */
);
} else {
-
+
_bounding_box = Rect (_lines.front().pos - _lines.front().width/2.0, /* x0 */
0, /* y0 */
_lines.back().pos + _lines.back().width/2.0, /* x1 */
}
boost::optional<Rect> isect = self.intersection (area);
-
+
if (!isect) {
- continue;
+ continue;
}
Rect intersection (isect.get());
LineSet::add (Coord y, Distance width, Color color)
{
begin_change ();
-
+
_lines.push_back (Line (y, width, color));
sort (_lines.begin(), _lines.end(), LineSorter());