Merge pull request #1453 from MarcSabatella/38991-cursor-jump-updown

fix #38991: cursor jump on up/down if layout changes
This commit is contained in:
Nicolas Froment 2014-11-16 19:49:26 +01:00
commit f783a7449b

View file

@ -3435,10 +3435,10 @@ void Score::setPos(POS pos, int tick)
{
if (tick < 0)
tick = 0;
if (tick != _pos[int(pos)]) {
if (tick != _pos[int(pos)])
_pos[int(pos)] = tick;
emit posChanged(pos, unsigned(tick));
}
// even though tick position might not have changed, layout might have
emit posChanged(pos, unsigned(tick));
}
//---------------------------------------------------------