From dc6a162ca17e3c710d32ee8b5b4fdbb0da2c2079 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 27 Jul 2021 17:07:42 -0600 Subject: [PATCH] canvas: remove Box::render() (it should just use Rectangle::render()) --- libs/canvas/box.cc | 11 +---------- libs/canvas/canvas/box.h | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/libs/canvas/box.cc b/libs/canvas/box.cc index 9d9217dd7d..91b9714d7a 100644 --- a/libs/canvas/box.cc +++ b/libs/canvas/box.cc @@ -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 context) const -{ - if (_fill || _outline) { - Rectangle::render (area, context); - } - - Item::render_children (area, context); + set_outline_width (3); } void diff --git a/libs/canvas/canvas/box.h b/libs/canvas/canvas/box.h index b97e8c6f7b..2d884a5e98 100644 --- a/libs/canvas/canvas/box.h +++ b/libs/canvas/canvas/box.h @@ -67,7 +67,6 @@ public: void set_homogenous (bool); void compute_bounding_box () const; - void render (Rect const & area, Cairo::RefPtr context) const; protected: Orientation orientation;