Skip to content

Conversation

@regulus79
Copy link
Member

In #7477, I forgot that clips in old projects are not saved with an "autoresize" attribute, so when loading them, it defaults to 0. However, this causes old clips in projects to be loaded without auto-resize which is not the normal behavior.

This PR fixes this by setting the default value when accessing the attribute to be 1.

@bratpeki
Copy link
Member

bratpeki commented May 4, 2025

I'll test for good measure, but since this was found by accident, that was practically a test, LOL!

@bratpeki bratpeki self-assigned this May 4, 2025
@bratpeki
Copy link
Member

bratpeki commented May 4, 2025

Tested!

@sakertooth sakertooth merged commit 61736a9 into LMMS:master May 4, 2025
11 checks passed
sakertooth pushed a commit to sakertooth/lmms that referenced this pull request Jun 1, 2025
A follow up to LMMS#7477, which ensures clips have auto-resizing enabled by default. This is needed because auto-resizing was the default behavior, but the code tried to use this newly added attribute with a default of 0 (i.e., auto resizing is not enabled).
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.

3 participants