X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Froot_group.cc;h=d9249a2c890db69cf09aee2f98a8674c61ddc65a;hb=926a06474476bcd4725be25f54eea04932c41137;hp=cded570b2c900151ffd31ddb54b05a337bd58370;hpb=680c64246e4ee9f3eb53da079dea6a7ecf996e92;p=ardour.git diff --git a/libs/canvas/root_group.cc b/libs/canvas/root_group.cc index cded570b2c..d9249a2c89 100644 --- a/libs/canvas/root_group.cc +++ b/libs/canvas/root_group.cc @@ -23,20 +23,21 @@ using namespace std; using namespace ArdourCanvas; -RootGroup::RootGroup (Canvas* canvas) - : Group (canvas) +Root::Root (Canvas* canvas) + : Container (canvas) { #ifdef CANVAS_DEBUG name = "ROOT"; -#endif +#endif } void -RootGroup::compute_bounding_box () const +Root::compute_bounding_box () const { - Group::compute_bounding_box (); + Container::compute_bounding_box (); if (_bounding_box) { - _canvas->request_size (Duple (_bounding_box.get().width (), _bounding_box.get().height ())); + Rect r (_bounding_box); + _canvas->request_size (Duple (r.width (), r.height ())); } }