]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/figured-bass-position-engraver.cc
trim outdated info.
[lilypond.git] / lily / figured-bass-position-engraver.cc
index 4e4f63af0877ccb351ec2c2ab813da76cf4b9bbe..8b4e7462c7c02339852d952633275fffcb593a91 100644 (file)
@@ -78,13 +78,14 @@ Figured_bass_position_engraver::acknowledge_note_column (Grob_info info)
   support_.push_back (info.grob ());
 }
 
-
 void
 Figured_bass_position_engraver::acknowledge_end_slur (Grob_info info)
 {
   vector<Grob*>::iterator i = find (span_support_.begin (), span_support_.end (),
                                    info.grob ());
-  span_support_.erase (i);
+
+  if (i < span_support_.end ())
+    span_support_.erase (i);
 }
 
 void