musescore/MuseScore — pull request #59 by mgavioli (2012-09-04 08:45:50+00:00)
Title: Fix ticks immediately when changing measure length

Calls Score::fixTicks() from within undo's ChangeMeasureLen::flip() instead of simply adding LAYOUT_FIX_TICKS to layout flags.

Test:
1) Open or create any score
2) Reduce the actual duration of measure
3) Press OK
=> SIGFAULT

This is because any operation on measures after ChangeMeasureLen::flip() -- and before re-layout -- finds the score in an inconsistent state (with a 'time hole' between the reduced measure and the next).

Calling fixTicks() from within ChangeMeasureLen::flip() itself fix this.