Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when deleting measures #296

Closed
Whatang opened this issue Dec 28, 2012 · 1 comment
Closed

Error when deleting measures #296

Whatang opened this issue Dec 28, 2012 · 1 comment
Labels
Milestone

Comments

@Whatang
Copy link
Owner

Whatang commented Dec 28, 2012

When multiple measures are deleted which make the number of measures in a line less, this can sometimes cause an error when the user tries to perform the next action.

In particular, find a line which ends with a section end or line break. Delete multiple measures from that line, not including the last measure on the line. Make sure that the last but one measure in the line is one of the ones deleted. Now try to add a note or right click on a measure line or measure anywhere on that line. An IndexError should be thrown.

@Whatang
Copy link
Owner Author

Whatang commented Dec 28, 2012

This seems to be something to do with the fact that the measure highlights are not being correctly updated when highlighted measures are deleted. After the deletion, DB thinks that the originally selected measures are still selected. When the user tries to perform the next action, the first thing that happens is that the selected measures are cancelled. Since measures were deleted this means that some of the NotePositions in the list of currently selected measures can be invalid. The selected measures should be cancelled before the delete is performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant