Fix crash when getting width of item with no bbox.
authorDavid Robillard <d@drobilla.net>
Wed, 24 Dec 2014 21:02:56 +0000 (16:02 -0500)
committerDavid Robillard <d@drobilla.net>
Wed, 24 Dec 2014 21:02:56 +0000 (16:02 -0500)
libs/canvas/item.cc

index 3ec06130b7c163ee020e79ab67ccc4a31bf9493a..9a851891d950a9f0605e260704a1972e34c93eff 100644 (file)
@@ -594,7 +594,7 @@ Item::height () const
 Coord
 Item::width () const 
 {
-       boost::optional<ArdourCanvas::Rect> bb = bounding_box().get();
+       boost::optional<ArdourCanvas::Rect> bb = bounding_box();
 
        if (bb) {
                return bb->width ();