Skip to content

Commit

Permalink
fix #59881 fix #59861 stemless measure and tab
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed May 10, 2015
1 parent a29da53 commit f44a313
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ void Chord::layoutStem()
int hookIdx = durationType().hooks();
if (!up())
hookIdx = -hookIdx;
if (hookIdx) {
if (hookIdx && _hook) {
_hook->setHookType(hookIdx);
qreal x = _stem->pos().x() + _stem->lineWidth() * .5;;
qreal y = _stem->pos().y();
Expand Down Expand Up @@ -2139,9 +2139,10 @@ void Chord::layoutTablature()
if (segment())
segment()->setDotPosX(staffIdx(), headWidth);
// if tab type is stemless or chord is stemless (possible when imported from MusicXML)
// or measure is stemless
// or duration longer than half (if halves have stems) or duration longer than crochet
// remove stems
if (tab->slashStyle() || _noStem || durationType().type() <
if (tab->slashStyle() || _noStem || measure()->slashStyle(staffIdx()) || durationType().type() <
(tab->minimStyle() != TablatureMinimStyle::NONE ? TDuration::DurationType::V_HALF : TDuration::DurationType::V_QUARTER) ) {
// delete _stem;
// delete _hook;
Expand Down

0 comments on commit f44a313

Please sign in to comment.