Description of the bug:
The Cleanup: rearrange / remove unused patterns function (from the Edit menu) doesn't work properly with a .mptm song that has multiple sequences in it.
How often does it happen?:
How to reproduce (step by step description):
- Open a tracker song with multiple sequences. Make sure it has some unused patterns, and that they are in an order that requires rearranging
- Use the Cleanup function from the Edit menu, and check the appropriate functions (Patterns: Remove Unused + Rearrange)
The patterns get re-arranged in all the sequences in a messed up fashion. Pattern #00 gets inserted in the start of every sequence. The patterns are not rearranged in order of appearance.