Fix to error 31046

Fixed the error, as advised by Jojo-Schmitz. This should avoid the collision.

New to MuseScore, and am really interested, so please let me know if i have made a mistake here.
Contact info : karansanwal@gmail.com

Working with MuseScore 1.3, Windows 8.
Thank you for giving programmers the oppurtunity to work on such awesome projects !