fix articulation direction property reset - 2nd try

This commit is contained in:
ws 2016-05-20 14:08:11 +02:00
parent 49e71c3fd6
commit 5feb64428b

View file

@ -501,7 +501,7 @@ void Articulation::setDirection(Direction d)
void Articulation::reset()
{
if (_direction != Direction::AUTO)
score()->undoChangeProperty(this, P_ID::DIRECTION, Direction::AUTO);
score()->undoChangeProperty(this, P_ID::DIRECTION, Direction(Direction::AUTO));
ArticulationAnchor a = score()->style()->articulationAnchor(int(articulationType()));
if (_anchor != a)
score()->undoChangeProperty(this, P_ID::ARTICULATION_ANCHOR, int(a));