Skip to content

Commit

Permalink
Merge pull request #140 from mgavioli/19211_NoteDot_visibility
Browse files Browse the repository at this point in the history
Fix 19211: NoteDot visibility
  • Loading branch information
lasconic committed Dec 6, 2012
2 parents 30aa394 + 6a08472 commit 55ce1db
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion libmscore/note.cpp
Expand Up @@ -1253,7 +1253,7 @@ void Note::layout()
score()->undoAddElement(dot); // move dot to _dots[i]
}
_dots[i]->layout();
_dots[i]->setVisible(visible());
// _dots[i]->setVisible(visible());
}
else if (_dots[i])
score()->undoRemoveElement(_dots[i]);
Expand Down Expand Up @@ -1792,6 +1792,16 @@ bool Note::setProperty(P_ID propertyId, const QVariant& v)
case P_VELO_TYPE:
setVeloType(MScore::ValueType(v.toInt()));
break;
case P_VISIBLE: // P_VISIBLE requires reflecting property on dots
{
setVisible(v.toBool());
int dots = chord()->dots();
for (int i = 0; i < dots; ++i) {
if (_dots[i])
_dots[i]->setVisible(visible());
}
break;
}
default:
if (!Element::setProperty(propertyId, v))
return false;
Expand Down

0 comments on commit 55ce1db

Please sign in to comment.