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

Avoid crash on spellcheck by ensuring enchant dictionary exists #303

Merged
merged 1 commit into from Feb 15, 2018

Conversation

gedakc
Copy link
Collaborator

@gedakc gedakc commented Jan 15, 2018

See issue #273.

@olivierkes do you think we should also test for dictionary existence in textEditView::setDict(self, d), or is this only called using a known to exist dictionary listed in the GUI?

@olivierkes
Copy link
Owner

I think it doesn't cost much in terms of performance to add a check in setDict, just to be on the safe side.

@gedakc
Copy link
Collaborator Author

gedakc commented Jan 18, 2018

Thanks for your input. I will add a check for dictionary existence to each call of setDict.

@gedakc
Copy link
Collaborator Author

gedakc commented Feb 10, 2018

Hi @olivierkes,

I added the extra check to ensure that the spelling dictionary is set. Note that I merged the enhancement into the original commit so that there is only only commit point. If you prefer separate commits then let me know and I will do that in the future.

If you are busy, then also let me know and then I will proceed to push this and other outstanding commits to the develop branch.

Best wishes,
Curtis

@gedakc gedakc merged commit 43c0775 into olivierkes:develop Feb 15, 2018
@gedakc gedakc deleted the issue-273-spellcheck-crash branch February 15, 2018 17:01
@gedakc
Copy link
Collaborator Author

gedakc commented Feb 15, 2018

This PR has been merged into the develop branch to be included in the next release of Manuskript.

@gedakc gedakc added the bug label Feb 19, 2018
@gedakc gedakc added this to the 0.7.0 milestone Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants