fix #37021: minimum line length can overlap next note
Merge pull request #1393 from MarcSabatella/37021-line-min

fix #37021: minimum line length can overlap next note