musescore/MuseScore — pull request #997 by BartlomiejLewandowski (2014-06-21 18:08:07+00:00)
Title: SpannerMap key fix

I found this bug in my selection-window branch, where I shortened the loop by going from, map.begin() to map.upper_bound(endTick).

When undoInsertTime is called, it loops through all spanners that are going to be affected, and corrects their start and end ticks. The keys in the map were not updated.

Undo does not work in this case yet.