Crash on set as style operation if score ends with a frame
I can reproduce this on Linux in 3.3 and in current master.
1) load attached score
2) position the view so the text in the frame at the end of the score is not in view
3) select the text on the first measure
4) press "Set as style" on the offset in Inspector
Result: crash. For some reason we are trying to position the viewport to that text, not sure why, apparently moveViewPortToLastEdit() is not understanding the actual relevant element is the staff text on the first measure. The crash itself happens in adjustCanvasPosition(), we've passed in the text as the element and staff is 0. Easy fix for crash would be to handle a null staff within adjustCanvasPosition() I guess, but really, we shouldn't be trying to position the viewport to that last text in the first place. I'lve got a little time to investigate right now but then I have to go teach this evening, so I'm not necessarily expecting to have a PR.