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

An alternative fix to crash after code sets selectedAnnotation = NULL. #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bhill-slac
Copy link

Both Annotation_select() and Annotation_move() are conditionally called in the same
block of widget code in Scan.c that handles Button2.
If something about the Ubuntu windowing system causes Annotation_move() to be
called after setting that ptr NULL, Annotation_move() needs to guard against it.

Both Annotation_select() and Annotation_move() are conditionally called in the same
block of widget code in Scan.c that handles Button2.
If something about the Ubuntu windowing system causes Annotation_move() to be
called after setting that ptr NULL, Annotation_move() needs to guard against it.
@bhill-slac
Copy link
Author

Added another check for null selectedAnnotation ptr

@bhill-slac bhill-slac mentioned this pull request Nov 22, 2016
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.

1 participant