Bug 451385 - Copy and pasting a layer with an existing layerstyle fails to save changes
Summary: Copy and pasting a layer with an existing layerstyle fails to save changes
Status: RESOLVED DUPLICATE of bug 457553
Alias: None
Product: krita
Classification: Applications
Component: layer styles (other bugs)
Version First Reported In: nightly build (please specify the git hash!)
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-11 03:08 UTC by Know Zero
Modified: 2023-04-17 19:35 UTC (History)
2 users (show)

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


Attachments
A sample KRA with layer copied and pasted sharing a resource (61.12 KB, application/x-krita)
2022-03-11 03:11 UTC, Know Zero
Details

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