--- a/branches/edit_controllers/rosegarden/src/gui/editors/matrix/MatrixScene.cpp
+++ b/branches/edit_controllers/rosegarden/src/gui/editors/matrix/MatrixScene.cpp
@@ -739,7 +739,7 @@
     Segment::iterator it = segment->begin();
     EventSelection *selection = new EventSelection(*segment);
 
-    for (; segment->isBeforeEndMarker(it); it++) {
+    for (; segment->isBeforeEndMarker(it); ++it) {
         if ((*it)->isa(Note::EventType)) {
             selection->addEvent(*it);
         }