Nothing Special   »   [go: up one dir, main page]

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 ToolType serialization bug. #3467

Merged

Conversation

createyourpersonalaccount
Copy link
Contributor

The following serialization invariant was found to not
hold for ToolType:

fromString(toString(x)) == x

The reason was a mismatch in serialization:

toolTypeToString(TOOL_PLAY_OBJECT) == "PlayObject"
toolTypeFromString("playObject") == TOOL_PLAY_OBJECT)

This probably had the effect of incorrectly serializing. We correct this
by changing the return value of toolTypeToString to match the camelCase
style seen in its other return values.

The following serialization invariant was found to not
hold for ToolType:

    fromString(toString(x)) == x

The reason was a mismatch in serialization:

    toolTypeToString(TOOL_PLAY_OBJECT) == "PlayObject"
    toolTypeFromString("playObject") == TOOL_PLAY_OBJECT)

This probably had the effect of incorrectly serializing. We correct this
by changing the return value of  toolTypeToString to match the camelCase
style seen in its other return values.
@LittleHuba LittleHuba merged commit 07264b0 into xournalpp:release-1.1 Oct 13, 2021
@createyourpersonalaccount createyourpersonalaccount deleted the playobject-bugfix branch October 14, 2021 09:40
@Technius Technius added this to the v1.1.1 milestone Oct 15, 2021
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