<?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>290380</bug_id>
          
          <creation_ts>2012-01-02 11:05:32 +0000</creation_ts>
          <short_desc>Removing the source of the clone layer leaves the clone in hazardous state</short_desc>
          <delta_ts>2012-02-06 06:39:53 +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>General</component>
          <version>unspecified</version>
          <rep_platform>Unlisted Binaries</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>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dmitry Kazakov">dimula73</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          
          
          <cf_commitlink></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>1207800</commentid>
    <comment_count>0</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2012-01-02 11:05:32 +0000</bug_when>
    <thetext>1) Create a layer
2) Create a clone of this layer
3) Remove the source layer

Clone layer still has a projection of the source due to some shared pointer links

4) Save the image to .kra file
5) Open saved .kra image

Crash, because the clone is not initialized</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1223540</commentid>
    <comment_count>1</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2012-02-06 06:39:53 +0000</bug_when>
    <thetext>Git commit 64bea43ed6cecbe383f560c63909cd63984a4123 by Dmitry Kazakov.
Committed on 06/02/2012 at 08:38.
Pushed by dkazakov into branch &apos;shapes-as-node-model-kazakov&apos;.

Fixed removing a layer that has clones

Now all the clones reincarnate to usual paint layers so will even be
able to paint on them.

M  +57   -9    krita/image/commands/kis_image_layer_remove_command.cpp
M  +15   -6    krita/image/commands/kis_image_layer_remove_command.h
M  +12   -0    krita/image/kis_clone_layer.cpp
M  +8    -0    krita/image/kis_clone_layer.h
M  +37   -0    krita/image/tests/kis_clone_layer_test.cpp
M  +2    -0    krita/image/tests/kis_clone_layer_test.h

http://commits.kde.org/calligra/64bea43ed6cecbe383f560c63909cd63984a4123</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>