13
0

make Item::set_position() do nothing if the position doesn't change

This commit is contained in:
Paul Davis 2014-02-13 18:15:19 -05:00
parent f889f391a1
commit 79d2a686ff

View File

@ -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;