13
0

canvas: remove Box::render() (it should just use Rectangle::render())

This commit is contained in:
Paul Davis 2021-07-27 17:07:42 -06:00
parent 85edd83338
commit dc6a162ca1
2 changed files with 1 additions and 11 deletions

View File

@ -59,16 +59,7 @@ Box::Box (Item* parent, Duple const & p, Orientation o)
, ignore_child_changes (false)
{
set_position (p);
}
void
Box::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
{
if (_fill || _outline) {
Rectangle::render (area, context);
}
Item::render_children (area, context);
set_outline_width (3);
}
void

View File

@ -67,7 +67,6 @@ public:
void set_homogenous (bool);
void compute_bounding_box () const;
void render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const;
protected:
Orientation orientation;