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 ()));
}
}