Bug 184741 - flake layer contents disappears if moving down a paint layer
Summary: flake layer contents disappears if moving down a paint layer
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Cyrille Berger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-18 01:42 UTC by Elián Hanisch
Modified: 2009-02-20 22:11 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 Elián Hanisch 2009-02-18 01:42:39 UTC
Version:           2.0 beta-6 (using 4.1.2 (KDE 4.1.2), Kubuntu packages)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-23-generic

bug that deletes what you did on your flake layer. 

1. draw something with the freehand or path tool (or anything that creates a flake layer) 
2. create a new paint layer, this new layer should be over the flake one.
3. move the new layer below the flake layer, for this, use the "move down" button of the docker, dragging the layer with the mouse doesn't trigger the bug 
4. what you did in the flake layer disappears

You can draw again something in the flake layer, move the paint layer adobe, then down, and again everything disappears
Comment 1 Cyrille Berger 2009-02-19 00:48:43 UTC
Sounds like calling KisNode::remove() on a shape layer also strips it down from its shapes (for instance, canceling the removal of a shape layer also removes the shapes, I didn't figure out, yet, what was triggering that)
Comment 2 Cyrille Berger 2009-02-19 23:59:56 UTC
I have identified the problem, line 170-177 of kis_shape_controler.cpp, shape children are removed when a KisShapeLayer is removed from the stack (which happen when raising/lowering)
Comment 3 Cyrille Berger 2009-02-20 22:11:04 UTC
SVN commit 929181 by berger:

fix: shapes disappearing when lower/raise, removing (and undoing removal), moving of shape layers
fix: allow to remove image shape (and probably some other exotic shape, like spread or chart)

BUG:184741

 M  +54 -31    kis_shape_controller.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=929181