13
0

Fix crash when getting width of item with no bbox.

This commit is contained in:
David Robillard 2014-12-24 16:02:56 -05:00
parent fb5ea0ca92
commit 86242348ec

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