Skip to content

Commit

Permalink
fix #273633: crash when drag&drop notes from drum palette
Browse files Browse the repository at this point in the history
manually merge from 2.3. see 6c0bd3a
  • Loading branch information
anatoly-os committed Jun 25, 2018
1 parent 189b24a commit e65d9ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libmscore/chord.cpp
Expand Up @@ -1784,8 +1784,10 @@ void Chord::layoutPitched()
}
computeUp();
layoutStem1();
qreal stemWidth5 = _stem->lineWidth() * .5;
_stem->rxpos() = up() ? (upNote()->headBodyWidth() - stemWidth5) : stemWidth5;
if (_stem) { //false when dragging notes from drum palette
qreal stemWidth5 = _stem->lineWidth() * .5;
_stem->rxpos() = up() ? (upNote()->headBodyWidth() - stemWidth5) : stemWidth5;
}
addLedgerLines();
return;
}
Expand Down

0 comments on commit e65d9ce

Please sign in to comment.