Union selection selects the entire canvas when no selection
Description If you use any selection tool in Union mode with an empty selection, the entire canvas is selected. I'm not sure whether this is an intentional feature, but I think it's more intuitive if, with an empty selection, union mode worked like replace mode.
To Reproduce
- Have a canvas with no selection
- Pick a selection tool (e.g. Rectangle Selection)
- Set Selection Mode to "Union"
- Do any selection
- The entire canvas will be selected
Additional Info
Version Linux Mint 22.1 Pinta 3.1
I agree that I'd expect union to behave like replace in this case.
I suspect the underlying issue is that there isn't currently a clear distinction in the code between having nothing selected (which implicitly acts like everything is selected for some purposes, like when an effect is clipped to the current selection), and actually having the whole document explicitly selected. Right now the only difference is the visibility flag for whether the selection is drawn