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) , ignore_child_changes (false)
{ {
set_position (p); set_position (p);
} set_outline_width (3);
void
Box::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
{
if (_fill || _outline) {
Rectangle::render (area, context);
}
Item::render_children (area, context);
} }
void void

View file

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