Bug 423615

Summary: Transformation box size gets bigger when the clone layer is moved away from the original
Product: [Applications] krita Reporter: Rayko <necromancer007>
Component: Tools/TransformAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ahab.greybeard, dimula73, halla
Priority: NOR    
Version First Reported In: 4.3.0   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: An example of a bug

Description Rayko 2020-06-28 12:30:11 UTC
Created attachment 129740 [details]
An example of a bug

SUMMARY
Transformation box size gets bigger when the clone layer of a group layer is moved away from the original

STEPS TO REPRODUCE
1. Create a couple of layers to put into the group layer.
2. Quick group the layers
3. Clone the group layer, attach a transform mask to it
4. Modify the transform mask by moving the clone away from the original

OBSERVED RESULT
The transform box now is larger than the original group layer's.

EXPECTED RESULT
The transform box be the same as the original's, unless the clone layer was scaled and/or sheared.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux Mint 19.3 Tricia
Qt Version:  5.12.8

ADDITIONAL INFORMATION
In the provided file, try to transform the mask of a clone layer and observe the bug.
The issue creates problems when it is necessary to transform the clone of a group layer precisely.
Comment 1 Rayko 2020-06-28 12:32:32 UTC
Initially I thought it targets only the clones of group layers, but I found out that clones of singular layers are also affected.
Comment 2 Ahab Greybeard 2020-06-30 10:36:16 UTC
I can confirm this for 4.3.0 and the latest 5.0.0 prealpha and 4.3.1 alpha appimages.

The bounding box gets bigger in the horizontal direction to the right/left if you transform-move to the right/left. Similarly for up/down moves.
The object stays at the side of the bounding box, which grows away from the object.
This change in bounding box size can be reversed by transform-moving the object back to the original position on the next move.

If a further move is done, without returning the object to its original position then the change in bounding box size becomes permanent.
The pivot point is always in the centre of the object and rotation or shear seem to have no effect on the bounding box size.

Extra Observation:
With 4.3.0, if you use the Move tool on the transform mask or on the clone layer (which are probably not actions you should do), that moves the pivot point as can be seen on the next use of the Transform tool.
Further Note:
For the 4.3.1 alpha and the 5.0.0 prealpha, combinations of such moves and transform-moves on the transform mask and the clone layer lead to a crash, which should be formally reported in the near future.
Comment 3 Halla Rempt 2020-06-30 10:44:51 UTC
Is this a regression in 4.3?
Comment 4 Ahab Greybeard 2020-06-30 12:15:45 UTC
This behaviour is in the 4.2.0 appimage onwards.

For my Comment 2 , I withdraw the following observation:
"If a further move is done, without returning the object to its original position then the change in bounding box size becomes permanent."
Because I can't repeat it.  I've no idea why not.
Comment 5 Dmitry Kazakov 2021-05-21 11:00:36 UTC

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