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 for #1964398: Added hasSelection check in PerformCut() #219

Merged
merged 1 commit into from Mar 9, 2022
Merged

Fix for #1964398: Added hasSelection check in PerformCut() #219

merged 1 commit into from Mar 9, 2022

Conversation

supershadoe
Copy link
Contributor

https://bugs.launchpad.net/pinta/+bug/1964398

When Ctrl+x is pressed with the text tool active, with empty text or some text entered(without finalizing) and without selecting the text, an exception is raised by the app.

This commit fixes that issue by adding a hasSelection() prior to calling DeleteSelection(). Works fine as far as I tested.

@cameronwhite cameronwhite merged commit f013384 into PintaProject:master Mar 9, 2022
@cameronwhite
Copy link
Member

Looks good, thanks for the contribution!

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.

None yet

2 participants