Bug 417183

Summary: After using transformation tool on vector shapes, pasted shapes are at far from the original shapes when copy-pasting them
Product: [Applications] krita Reporter: acc4commissions
Component: Layers/VectorAssignee: Dmitry Kazakov <dimula73>
Status: RESOLVED FIXED    
Severity: minor CC: halla
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: recording (using shortcuts to copy paste)

Description acc4commissions 2020-02-05 09:43:06 UTC
SUMMARY
git 09519fe

possibly related to : https://bugs.kde.org/show_bug.cgi?id=417016



STEPS TO REPRODUCE
1. Create a vector layer and draw shapes.
2. Use Transformation Tool on those shapes.
3. Select and try to copy paste the shapes with Select Shapes Tool or Ctrl+C -> Ctrl+V.

* If you create any new vector layer and try to copy-Paste on those, it works normally.
* Move Tool doesn't seem relevant.



SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 acc4commissions 2020-02-05 09:50:40 UTC
Oh, it seems that copy-paste actually works; But not normally. The pasted shapes appear very far from the original shapes, where seems to be random(per shapes).
Comment 2 acc4commissions 2020-02-05 09:53:16 UTC
Created attachment 125686 [details]
recording (using shortcuts to copy paste)
Comment 3 Dmitry Kazakov 2020-02-05 13:09:30 UTC
Thanks for the report! I'll try to fix it now! :)
Comment 4 Dmitry Kazakov 2020-02-05 17:10:33 UTC
The bug should be fixed by b4951fc120f711e0d067784d25497f681dcd96ca and 57e68a90f578f97f91b1344bf92c9ff43206bd12
Comment 5 acc4commissions 2020-02-06 10:16:11 UTC
Still happens in git e050fb6.
Comment 6 acc4commissions 2020-02-07 13:33:04 UTC
Still happens in git b318a6d. :P The pasted shapes appear very far from where the original shapes are.
Comment 7 acc4commissions 2020-02-07 13:37:05 UTC
(In reply to acc4commissions from comment #6)
> Still happens in git b318a6d. :P The pasted shapes appear very far from
> where the original shapes are.

After testing for a bit more, it seems that the distance *doesn't* seem to be random, but I can't say how it is defined exactly.
Comment 8 Dmitry Kazakov 2020-03-09 22:06:48 UTC
Git commit 43b517002bbc719a0a7eae6261f555a1e671e4a7 by Dmitry Kazakov.
Committed on 09/03/2020 at 22:04.
Pushed by dkazakov into branch 'master'.

Fix offset of transformed shapes after copy-paste

M  +1    -1    libs/flake/KoDrag.cpp

https://invent.kde.org/kde/krita/commit/43b517002bbc719a0a7eae6261f555a1e671e4a7