Skip to content

Commit

Permalink
fix #73716: Add or modify text in a frame followed by playback start …
Browse files Browse the repository at this point in the history
…causes a crash
  • Loading branch information
lasconic committed Aug 17, 2015
1 parent 96405dd commit 1dad6e2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions mscore/textcursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,16 @@ void PositionCursor::paint(QPainter* p)
break;
default: // fill the rectangle and add TAB string marks, if required
p->fillRect(_rect, color());
int track = _sv->score()->inputTrack();
Staff* staff = _sv->score()->staff(track2staff(track));
StaffType* staffType = staff->staffType();
if (staffType && staffType->group() == StaffGroup::TAB)
staffType->drawInputStringMarks(p, _sv->score()->inputState().string(),
track2voice(track), _rect);
if (_sv->score()->noteEntryMode()) {
int track = _sv->score()->inputTrack();
if (track >= 0) {
Staff* staff = _sv->score()->staff(track2staff(track));
StaffType* staffType = staff->staffType();
if (staffType && staffType->group() == StaffGroup::TAB)
staffType->drawInputStringMarks(p, _sv->score()->inputState().string(),
track2voice(track), _rect);
}
}
break;
}
}
Expand Down

0 comments on commit 1dad6e2

Please sign in to comment.