diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-24 23:17:38 +0100 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-24 23:17:38 +0100 |
commit | cce1c58198daf4d09b9fc916a257332813033a9d (patch) | |
tree | b16800664a3f3d7f2877de0298915ab5fe3e4cfb /libs/canvas/item.cc | |
parent | 8432a7732920daa3e759f02d4ad31f338e184b6f (diff) |
This wasn't supposed to be pushed to master.
Revert "add basic data members and methods for adding an explicit size allocation for Canvas::Item"
This reverts commit d1c1d8df614672b00a9835ae04566b12d21be697.
Diffstat (limited to 'libs/canvas/item.cc')
-rw-r--r-- | libs/canvas/item.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index 589f1214b7..06ad24f2e6 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -571,15 +571,9 @@ Item::grab_focus () /* XXX */ } -void -Item::size_allocate (Rect const & r) -{ - _allocation = r; -} - /** @return Bounding box in this item's coordinates */ ArdourCanvas::Rect -Item::bounding_box (bool for_own_purposes) const +Item::bounding_box () const { if (_bounding_box_dirty) { compute_bounding_box (); @@ -587,12 +581,6 @@ Item::bounding_box (bool for_own_purposes) const add_child_bounding_boxes (); } - if (!for_own_purposes) { - if (_allocation) { - return _allocation; - } - } - return _bounding_box; } |