summaryrefslogtreecommitdiff
path: root/libs/canvas/item.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-03-07 11:23:22 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-03-07 11:23:22 -0500
commite5802bdbea5a6c6b60df4be4d8a41713af680e8f (patch)
tree5e67b503b2f6d0f720ae98c91836fec5b03e02e6 /libs/canvas/item.cc
parent0ef3fedf9aa59992a134dfde6f387efd96d3d74f (diff)
move an assert to cover only cases where it is needed
Diffstat (limited to 'libs/canvas/item.cc')
-rw-r--r--libs/canvas/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc
index 418382da17..e4e3c30546 100644
--- a/libs/canvas/item.cc
+++ b/libs/canvas/item.cc
@@ -404,9 +404,9 @@ Item::bounding_box () const
{
if (_bounding_box_dirty) {
compute_bounding_box ();
+ assert (!_bounding_box_dirty);
}
- assert (!_bounding_box_dirty);
return _bounding_box;
}