X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fcanvas%2Froot_group.cc;h=141cee4f67ef5eb9066d7a5dc2c7f4f4eaf7c32e;hb=a9c09af816b3d7da40221ac4a2bb4c6074708d89;hp=b8637d9988d95bd1f7a71f744190d2a2fbad2c67;hpb=30968b854257cb5f9159ca59589f783c85615601;p=ardour.git diff --git a/libs/canvas/root_group.cc b/libs/canvas/root_group.cc index b8637d9988..141cee4f67 100644 --- a/libs/canvas/root_group.cc +++ b/libs/canvas/root_group.cc @@ -1,24 +1,43 @@ +/* + Copyright (C) 2011-2013 Paul Davis + Author: Carl Hetherington + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + #include "canvas/root_group.h" #include "canvas/canvas.h" 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) { - cerr << "!!!!! requesting canvas size " << _bounding_box.get() << endl; - _canvas->request_size (Duple (_bounding_box.get().width (), _bounding_box.get().height ())); + Rect r (_bounding_box.get()); + _canvas->request_size (Duple (r.width (), r.height ())); } }