After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 165168 - Pasted object should appear on top of the original object
Pasted object should appear on top of the original object
Status: RESOLVED DUPLICATE of bug 350897
Product: GIMP
Classification: Other
Component: User Interface
2.2.x
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-01-25 11:41 UTC by Piotr Cieslinski
Modified: 2008-01-15 12:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Piotr Cieslinski 2005-01-25 11:41:59 UTC
Please describe the problem:
A small object on a transparent layer cannot be copied with whole 

Steps to reproduce:
1. File -> New -> Advanced -> Filled with (transparency) -> OK - single 
transparent layer is created.
2. Select paintbrush (<P>).
3. Draw letter U with paintbrush in a top part of layer.
4. Select whole layer (<CTRL> + <A>).
5. Copy whole layer (<CTRL> + <C>).
6. Paste selected area (<CTRL> + <V>).


Actual results:
Second letter U just in a middle of layer (below first U) will be visible

Expected results:
To get U shape exactly in the same place where the first U is placed

Does this happen every time?
Yes

Other information:
Comment 1 Raphaël Quinet 2005-01-25 12:30:29 UTC
If I understood your description correctly, the problem is that you do not want
the copied layer to be shrunk automatically.  Currently, when you copy and paste
a layer, the GIMP will automatically shrink it (removing the fully transparent
areas).  And since the GIMP creates the floating selection (with the pasted
object) in the middle of your image, the pasted object is not aligned with the
original one.  I have changed the summary of this bug report so that it fits
this description.

This cannot be done in all cases (e.g., if the original object is not from the
same image) but other programs try to position the copy on top of the original
so it makes sense that some users expect the GIMP to behave in the same way.

Some improvements to the floating selections are discussed in bug #113477.
Other issues were previously discussed in bug #78732 and bug #142944.
Comment 2 Albert Cahalan 2005-01-25 14:58:13 UTC
The gimp also fails to paste the alpha. Remember, the selection
was rectangular. It was not generated from the alpha. For that
the gimp has a menu option:

Layer -> Transparency -> Alpha to Selection
(probably that should appear under the Select menu too)

So Piotr's problem is solved simply by making his selection
based on alpha. Pasting the full RGBA image does not work though,
and it should. Trimming is also wrong, since it destroys data
that may be valid.

Comment 3 Michael Schumacher 2005-01-25 15:52:16 UTC
IIRC it already discards the A=0 parts during the copy, and there is another bug
about this, or a discussion on a mailing list, describing if it can easily by
solved or if (and why not).
Comment 4 Raphaël Quinet 2006-08-11 17:59:41 UTC
I think that we can mark this as a duplicate of bug #350897 (even if this one is older).  The patch attached to that bug report will solve this one as well.


*** This bug has been marked as a duplicate of 350897 ***