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

Fix debug assertion when exporting invalid bpm as file tag #4063

Merged
merged 1 commit into from
Jul 6, 2021
Merged

Fix debug assertion when exporting invalid bpm as file tag #4063

merged 1 commit into from
Jul 6, 2021

Conversation

uklotzde
Copy link
Contributor

@uklotzde uklotzde commented Jul 6, 2021

No description provided.

@uklotzde uklotzde requested a review from Holzhaus July 6, 2021 16:35
Copy link
Member

@Holzhaus Holzhaus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the noise :D At least we notice if we didn't handle this case now.

if (!bpm.isValid()) {
return {};
}
return Bpm::valueToString(bpm.value());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make valueToString a member of the Bpm class (bpm.toString()) and make the check internally?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, because now the check is done twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do this separately. I didn't check what else is affected and if it applies to other values.

@Holzhaus Holzhaus merged commit 8d75d83 into mixxxdj:main Jul 6, 2021
@uklotzde uklotzde deleted the format-bpm branch July 9, 2021 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants