projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb5ea0c
)
Fix crash when getting width of item with no bbox.
author
David Robillard
<d@drobilla.net>
Wed, 24 Dec 2014 21:02:56 +0000
(16:02 -0500)
committer
David Robillard
<d@drobilla.net>
Wed, 24 Dec 2014 21:02:56 +0000
(16:02 -0500)
libs/canvas/item.cc
patch
|
blob
|
history
diff --git
a/libs/canvas/item.cc
b/libs/canvas/item.cc
index 3ec06130b7c163ee020e79ab67ccc4a31bf9493a..9a851891d950a9f0605e260704a1972e34c93eff 100644
(file)
--- a/
libs/canvas/item.cc
+++ b/
libs/canvas/item.cc
@@
-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 ();