Fix crash when getting width of item with no bbox.
This commit is contained in:
parent
fb5ea0ca92
commit
86242348ec
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user