X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Froot_group.cc;h=d9249a2c890db69cf09aee2f98a8674c61ddc65a;hb=6b1b72a247bf04c81292fc41af4f69c9b7f90379;hp=cded570b2c900151ffd31ddb54b05a337bd58370;hpb=59076a7e4c66db12bbbfbf01f012ca2f6ba4bf56;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 ())); } }