From ffc50fcf9da9f98ce2f261cffc2a01be20af32ed Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 7 Apr 2012 01:37:27 +0000 Subject: [PATCH] Remove use of invalidated iterator (#4826). git-svn-id: svn://localhost/ardour2/branches/3.0@11807 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/tempo_lines.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/tempo_lines.cc b/gtk2_ardour/tempo_lines.cc index 2c7895f7a8..2cab60c157 100644 --- a/gtk2_ardour/tempo_lines.cc +++ b/gtk2_ardour/tempo_lines.cc @@ -48,8 +48,9 @@ TempoLines::tempo_map_changed() ++next; i->second->property_x1() = - d; i->second->property_x2() = - d; + ArdourCanvas::SimpleLine* f = i->second; _lines.erase(i); - _lines.insert(make_pair(- d, i->second)); + _lines.insert(make_pair(- d, f)); i = next; } }