<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>399575</bug_id>
          
          <creation_ts>2018-10-09 19:24:04 +0000</creation_ts>
          <short_desc>layer remains visible after undo of creation</short_desc>
          <delta_ts>2018-10-11 08:23:20 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Layer Stack</component>
          <version>4.1.3</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>wkg28406</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://commits.kde.org/krita/0b5a8d344ff8509ddae44461a444db9df2221258</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1792876</commentid>
    <comment_count>0</comment_count>
    <who name="">wkg28406</who>
    <bug_when>2018-10-09 19:24:04 +0000</bug_when>
    <thetext>SUMMARY
When undoing creation of a layer with content on it, it remains visible.

STEPS TO REPRODUCE
1. New document
2. Draw on Layer 2
3. Duplicate Layer 2
4. Hide Layer 2 (eye in docker)
5. Undo

OBSERVED RESULT
Duplicated layer is still visible even though it is removed and no other layers except Layer 1 are visible.

EXPECTED RESULT
No layers should be visible except Layer 1.

SOFTWARE VERSIONS
Qt Version: 5.11.2-1

ADDITIONAL INFORMATION
This was just one method. Layers do not have to be hidden nor does it have to be a duplicated layer.

Here&apos;s another example which shows some other issues with layers: (and how it was originally discovered)
1. New document
2. Draw something on Layer 2
3. Create new Layer 3
4. Draw on new Layer 3
5. Delete Layer 3
6. Draw something on Layer 2 (cannot do next steps unless this is done, deletion not added to undo stack)
7. Undo twice
8. Redo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1792983</commentid>
    <comment_count>1</comment_count>
    <who name="Emmet O&apos;Neill">emmetoneill.pdx</who>
    <bug_when>2018-10-10 09:36:15 +0000</bug_when>
    <thetext>Git commit 20406f0cb05f81cfa5f752d9c6b43f1ebc1a476f by Emmet O&apos;Neill.
Committed on 10/10/2018 at 09:35.
Pushed by emmetoneill into branch &apos;master&apos;.

Fix KisImageLayerAddCommand Redo/Undo Updating Bug.

M  +1    -1    libs/ui/kis_node_juggler_compressed.cpp

https://commits.kde.org/krita/20406f0cb05f81cfa5f752d9c6b43f1ebc1a476f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1793339</commentid>
    <comment_count>2</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2018-10-11 08:23:20 +0000</bug_when>
    <thetext>Git commit 0b5a8d344ff8509ddae44461a444db9df2221258 by Boudewijn Rempt, on behalf of Emmet O&apos;Neill.
Committed on 11/10/2018 at 07:52.
Pushed by rempt into branch &apos;krita/4.1&apos;.

Fix KisImageLayerAddCommand Redo/Undo Updating Bug.
(cherry picked from commit 20406f0cb05f81cfa5f752d9c6b43f1ebc1a476f)

M  +1    -1    libs/ui/kis_node_juggler_compressed.cpp

https://commits.kde.org/krita/0b5a8d344ff8509ddae44461a444db9df2221258</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>