From 79d2a686ff74a334c6a682b73f38b27407e72d21 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 13 Feb 2014 18:15:19 -0500 Subject: make Item::set_position() do nothing if the position doesn't change --- libs/canvas/item.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libs/canvas/item.cc') 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 bbox = bounding_box (); boost::optional pre_change_parent_bounding_box; -- cgit v1.2.3