Bug 447264

Summary: Image -> Properties -> Dimensions, Number of Layers: is one more than it should be
Product: [Applications] krita Reporter: Ahab Greybeard <ahab.greybeard>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: dan.mccarthy.software
Priority: NOR    
Version: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Debian stable   
OS: Linux   
Latest Commit: Version Fixed In:

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 :)