Bug 417183 - After using transformation tool on vector shapes, pasted shapes are at far from the original shapes when copy-pasting them
Summary: After using transformation tool on vector shapes, pasted shapes are at far fr...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Layers/Vector (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR minor
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-05 09:43 UTC by acc4commissions
Modified: 2020-03-09 22:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
recording (using shortcuts to copy paste) (475.01 KB, video/mp4)
2020-02-05 09:53 UTC, acc4commissions
Details

Note You need to log in before you can comment on or make changes to this bug.
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