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

Check if GraphPane is null before attempting to modify CurveList #22

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

ncguilbeault
Copy link
Contributor

This PR makes a change to the BoundedGraphPanel class, specifically the OnInvalidated method, to check if the GraphPane is null before attempting to interact with the GraphPane. On Linux/Mono, the OnInvalidated method is being called before the GraphPane is initialised, leading to an error when attempting to call GraphPane.CurveList. This seems to be a Linux specific issue, since the original code works fine on Windows. I've tested on Windows as well with the new modification and it seems to work okay.

@glopesdev
Copy link
Member

@ncguilbeault ah, sorry! I think my edits didn't work well because I didn't correct the rest of the file which still has the extra indentation. The best way might be to just undo the two commits in the local branch, then you can just implement the check yourself and force push, that should solve everything.

@ncguilbeault
Copy link
Contributor Author

Okay, should be updated now

@glopesdev glopesdev merged commit f656bbe into bonsai-rx:main Apr 19, 2024
2 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.

2 participants