13
0

Remove use of invalidated iterator (#4826).

git-svn-id: svn://localhost/ardour2/branches/3.0@11807 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-04-07 01:37:27 +00:00
parent 83b7463b40
commit ffc50fcf9d

View File

@ -48,8 +48,9 @@ TempoLines::tempo_map_changed()
++next; ++next;
i->second->property_x1() = - d; i->second->property_x1() = - d;
i->second->property_x2() = - d; i->second->property_x2() = - d;
ArdourCanvas::SimpleLine* f = i->second;
_lines.erase(i); _lines.erase(i);
_lines.insert(make_pair(- d, i->second)); _lines.insert(make_pair(- d, f));
i = next; i = next;
} }
} }