fix crash when copy'ing latent plugins
[ardour.git] / libs / canvas / root_group.cc
index cded570b2c900151ffd31ddb54b05a337bd58370..141cee4f67ef5eb9066d7a5dc2c7f4f4eaf7c32e 100644 (file)
 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 ()));
        }
 }