Skip to content

Commit

Permalink
fix #27431
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Jul 9, 2014
1 parent d59cc84 commit 44c17d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libmscore/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ChordRest::ChordRest(const ChordRest& cr, bool link)
_crossMeasure = cr._crossMeasure;
_space = cr._space;

foreach (Lyrics* l, cr._lyricsList) { // make deep copy
for (Lyrics* l : cr._lyricsList) { // make deep copy
if (l == 0)
continue;
Lyrics* nl = new Lyrics(*l);
Expand Down
6 changes: 4 additions & 2 deletions libmscore/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,10 @@ void Selection::updateSelectedElements()
continue;
if (e->isChordRest()) {
ChordRest* cr = static_cast<ChordRest*>(e);
foreach (Element* e, cr->lyricsList())
_el.append(e);
for (Element* e : cr->lyricsList()) {
if (e)
_el.append(e);
}
}
if (e->type() == Element::Type::CHORD) {
Chord* chord = static_cast<Chord*>(e);
Expand Down

0 comments on commit 44c17d9

Please sign in to comment.