diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-07 01:37:27 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-07 01:37:27 +0000 |
commit | ffc50fcf9da9f98ce2f261cffc2a01be20af32ed (patch) | |
tree | dc7de2c3034d7a0d2b9b86431c043f1be5fd70ac /gtk2_ardour/tempo_lines.cc | |
parent | 83b7463b40291448ab6f6d4a301705c653d7a819 (diff) |
Remove use of invalidated iterator (#4826).
git-svn-id: svn://localhost/ardour2/branches/3.0@11807 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/tempo_lines.cc')
-rw-r--r-- | gtk2_ardour/tempo_lines.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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; } } |