Skip to content
Permalink
Browse files

DIRECTOR: Fix getNextLabelNumber() for the rightmost frame

  • Loading branch information
sev- committed Mar 3, 2017
1 parent aafd10d commit 85faa4bebc43a9ac05dd1b5727a35d9cb22ff976
Showing with 3 additions and 2 deletions.
  1. +3 −2 engines/director/score.cpp
@@ -717,14 +717,15 @@ int Score::getNextLabelNumber(int referenceFrame) {

for (i = _labels->begin(); i != _labels->end(); ++i) {
if ((*i)->number >= referenceFrame) {
int n = (*i)->number;
++i;
if (i != _labels->end()) {
// return to the first marker to to the right
++i;
return (*i)->number;
} else {
// if no markers are to the right of the playback head,
// the playback head goes to the first marker to the left
return (*i)->number;
return n;
}
}
}

0 comments on commit 85faa4b

Please sign in to comment.
You can’t perform that action at this time.