Cut does not work as expected when background colour has transparency

Bug #1911850 reported by Alister Hood

This bug report was converted into a question: question #695016: Cut does not work as expected when background colour has transparency.

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dibuja
Invalid
Wishlist
Unassigned

Bug Description

Hi, thanks for the great project - a good alternative to MS paint is something people often ask for, and I wish I'd seen this earlier.

It seems that the implementation of Edit>Cut works like this:
1. copy the selection to the clipboard
2. draw a rectangle with both border and fill in the background colour over the selected area.

The results of this do not make sense when the background colour is either fully or partially transparent.

As an aside, I'm not convinced it makes the most sense to fill with the background colour when you cut (as opposed to deleting everything i.e. making it fully transparent), but I realise this is the traditional behaviour of programs like MS Paint. Assuming you are going to stick with this behaviour I think you need to insert an intermediate step:

1. copy the selection to the clipboard
2. make the selected area fully transparent
3. draw a rectangle in the background colour

Revision history for this message
Juan B (jbal) wrote :

Yes, I'm not quite satisfied with the current behavior. A better solution would be to have an option to fill with an opaque background color of fully transparent color.
If you need a transparent rectangle:
1. Set the foreground color transparency to 0 (click the foreground color button).
2. Flood fill the rectangle.

Changed in dibuja:
importance: Undecided → Wishlist
status: New → Opinion
Juan B (jbal)
Changed in dibuja:
status: Opinion → Invalid
Revision history for this message
Juan B (jbal) wrote :

Fix committed (revision 125).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.