fix possible crash for barline and hidden staff
link frames
Merge branch 'master' of github.com:musescore/MuseScore