Skip to content

Commit

Permalink
fix #106146 Crash when pressing LEFT in note entry mode
Browse files Browse the repository at this point in the history
  • Loading branch information
heuchi committed Apr 14, 2016
1 parent f0ae34a commit 48764a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libmscore/input.cpp
Expand Up @@ -116,7 +116,9 @@ void InputState::moveInputPos(Element* e)
return;

Segment* s;
if (e->isChordRest())
if (e->isSegment())
s = static_cast<Segment*>(e);
else if (e->isChordRest())
s = static_cast<ChordRest*>(e)->segment();
else
s = static_cast<Segment*>(e);
Expand Down

0 comments on commit 48764a7

Please sign in to comment.