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

Neovide crashes when both x & y blur are set to 0 #1707

Merged

Conversation

chomosuke
Copy link
Contributor

@chomosuke chomosuke commented Dec 30, 2022

What kind of change does this PR introduce?

  • Fix
    • blur() return None if both x & y blur are 0. I couldn't find any doc on this but I assume this is because a sigma of 0 makes a division by 0 error. Instead of crashing straight away via unwrap(), it now simply does nothing (i.e. doesn't blur) if None is returned.
    • Note that interestingly when only one of x or y blur is set to 0, it does not return None.

Did this PR introduce a breaking change?

A breaking change includes anything that breaks backwards compatibility either at compile or run time.

  • No

@shaunsingh shaunsingh merged commit 87dac98 into neovide:main Dec 30, 2022
@chomosuke chomosuke deleted the fix-crash-on-setting-blur-amount-to-0 branch December 30, 2022 21:45
TENX-S pushed a commit to TENX-S/neovide that referenced this pull request Jan 24, 2023
TENX-S pushed a commit to TENX-S/neovide that referenced this pull request Jan 24, 2023
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.

2 participants