Unhandled exception on cutting text without selecting when using text tool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pinta |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Pinta version 2.0.1 on Arch Linux
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.
Exception details:
System.
---> System.
at Pinta.Core.
at Pinta.Core.
at Pinta.Core.
at Pinta.Tools.
at Pinta.Core.
at Pinta.Core.
--- End of inner exception stack trace ---
at System.
at System.
at System.
at GLib.Signal.
at GLib.SignalClos
Changed in pinta: | |
milestone: | none → 2.1 |
status: | New → Fix Committed |
Changed in pinta: | |
status: | Fix Committed → Fix Released |
I think the issue is that there is no check to see if there is any text selected in PerformCut(); For the copying text part, PerformCopy() performs that check but DeleteSelection() is called with no check.
So, I think adding that one line for check is enough