X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fcanvas%2Froot_group.cc;h=141cee4f67ef5eb9066d7a5dc2c7f4f4eaf7c32e;hb=f699773490ffc4b7380eede4e529c66416f965ac;hp=a9e0aae77fcf8973f05bcdb47add1bc262808a0c;hpb=a1745f2cf17336ff4109ac491549049f9f35a573;p=ardour.git diff --git a/libs/canvas/root_group.cc b/libs/canvas/root_group.cc index a9e0aae77f..141cee4f67 100644 --- a/libs/canvas/root_group.cc +++ b/libs/canvas/root_group.cc @@ -1,23 +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) { - _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 ())); } }