diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-02-13 18:15:19 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-02-13 18:18:19 -0500 |
commit | 79d2a686ff74a334c6a682b73f38b27407e72d21 (patch) | |
tree | d0f50cb9d07d2dbc933433a92a341e022dced163 /libs/canvas/item.cc | |
parent | f889f391a1e197368a56ba63297fe221c7d1fde4 (diff) |
make Item::set_position() do nothing if the position doesn't change
Diffstat (limited to 'libs/canvas/item.cc')
-rw-r--r-- | libs/canvas/item.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/canvas/item.cc b/libs/canvas/item.cc index 3c3816881a..8a8acce086 100644 --- a/libs/canvas/item.cc +++ b/libs/canvas/item.cc @@ -181,6 +181,10 @@ Item::item_to_window (ArdourCanvas::Rect const & r) const void Item::set_position (Duple p) { + if (p == _position) { + return; + } + boost::optional<ArdourCanvas::Rect> bbox = bounding_box (); boost::optional<ArdourCanvas::Rect> pre_change_parent_bounding_box; |