Bug 447264 - Image -> Properties -> Dimensions, Number of Layers: is one more than it should be
Summary: Image -> Properties -> Dimensions, Number of Layers: is one more than it shou...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Usability (show other bugs)
Version: nightly build (please specify the git hash!)
Platform: Debian stable Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-20 09:52 UTC by Ahab Greybeard
Modified: 2022-01-04 14:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahab Greybeard 2021-12-20 09:52:26 UTC
SUMMARY
Tested with all 5.0.0-beta versions and the Dec 19 5.1.0-prealpha (git 5e7b12a) appimages on Debian 10.
This is only for 5.0.0-beta1 onwards, 4.4.8 does not have this feature.

Image -> Properties -> Dimensions tab shows 'Number of Layers' for a document.
This is one more than it should be.

Note that the 'formal' layer names in the .kra file start at "layer2" and increment from there.
That may be relevant.

STEPS TO REPRODUCE
See Summary

OBSERVED RESULT
See Summary

EXPECTED RESULT
The layer count should be accurate

ADDITIONAL INFORMATION
Comment 1 dan.mccarthy.software@gmail.com 2022-01-04 05:17:32 UTC
Hey there, I have looked into this issue and found the root cause of the inflated layer count. I have submitted a patch (here: https://invent.kde.org/graphics/krita/-/merge_requests/1270) to fix this issue, which has already been approved and merged.

I have confirmed that the nightly build already contains this change and is showing the expected number of layers.

I can move this to resolved upon the next release where I can verify it's completion.
Comment 2 Ahab Greybeard 2022-01-04 14:47:01 UTC
I tested the latest nightly builds for the appimage and the Windows portable .zip. The bug is fixed :)