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 UI freeze when zooming in on long samples #7253

Merged
merged 2 commits into from
May 19, 2024

Conversation

khoidauminh
Copy link
Contributor

In the first loop of the function, resolution (float) gets added to the loop index. On extremely large indices this operation fails, resulting in an infinite loop.

Solution is to declare an int version of resolution for loop incrementing.

Fixes #7249

…thmetic and one of type int for loop incrementing
Copy link
Member

@zonkmachine zonkmachine left a comment

Choose a reason for hiding this comment

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

Tested, issue fixed! Looks fine to me.

@khoidauminh khoidauminh requested a review from Rossmaxx May 19, 2024 03:16
Copy link
Contributor

@Rossmaxx Rossmaxx left a comment

Choose a reason for hiding this comment

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

LGTM.

@zonkmachine zonkmachine merged commit 0071cb6 into LMMS:master May 19, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UI freezes when zooming to much in the song editor when there is a long sample track
4 participants