Bug 451385

Summary: Copy and pasting a layer with an existing layerstyle fails to save changes
Product: [Applications] krita Reporter: Know Zero <knowzero>
Component: layer stylesAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: halla, tamtamy.tymona
Priority: NOR    
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: A sample KRA with layer copied and pasted sharing a resource

Description Know Zero 2022-03-11 03:08:47 UTC
SUMMARY

There seems to be a bug where a the style resource is not duplicated when a layer is copy and pasted into the same document. In both 5.0.2 and 5.1 nightly.


STEPS TO REPRODUCE
1. Create a layer, add a stroke and a color overlay to the layer
2.  copy the layer and paste it into the same document
3.  now modify the original one with a different overlay color (you may wish to hide the other layer)
4. save and close
5. open it up

OBSERVED RESULT
changes to the overlay were not changed. It seems to be keeping a single resource for both under styles even after you change the original.

EXPECTED RESULT
Another resource should probably be created and changes saved.

SOFTWARE/OS VERSIONS
OpenSuse 15.3
Comment 1 Know Zero 2022-03-11 03:11:41 UTC
Created attachment 147433 [details]
A sample KRA with layer copied and pasted sharing a resource
Comment 2 Halla Rempt 2022-04-06 13:46:20 UTC
I can confirm the issue, but I also get crash -- though that probably is unrelated.
Comment 3 Tiar 2023-04-17 19:35:05 UTC

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