Deleted layer is magically back when Save is performed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pinta |
New
|
Undecided
|
Unassigned |
Bug Description
Pinta 1.7.0.191 on Windows 7.
1. New image 100 x 100.
2. Click on red color Palette.
3. Click on Paint Bucket and paint whole canvas in red.
4. Click on Add New Layer button from Layers pad.
5. Double click on new layer and name it GreenLine.
6. Add another new layer and name it BlackLine.
7. (BlackLine layer selected) click on Line/Curve from Tools pad, click on black color from Palette and draw a line on canvas.
8. Click on GreenLine layer select green line from Palette and try to draw the same line over existing black line display. (I intentionally draw green line little bit up next to black line that can be seen in our problem).
9. (Now I would like to decide to have black or green color. So I am enabling/disabling BlackLine or GreenLine checkboxes.) Now I decided to have green line. Click checkbox next to BlackLine to disable this layer.
10. Click on Save button from canvas, select png file, name it and save the image. Now first trouble appears. It looks like Pinta just merges all of the layers and saves them. I expect to save to png only the enabled layers. I don't know if this is a bug or not the best design. Another problem appears after save: BlackLine layer gets enabled, despite it was disabled before save. Bug?
11. To overcome above problem, idea is to temporally delete the layer, save the file to png and undo delete layer. Click on BlackLine layer and delete it with Delete Layer button from Layers pad.
12. Save button from toolbar and even bigger surprise. Deleted layer is magically back and also saved in png file. This is bug for sure.
13. Additional surprises: click undo and I expect to get back to no BlackLine layer, but it doesn't it just starts to undo the lines from canvas.
I think this is the same issue as #1424632 - things such as saving the image force tools to commit in-progress edits, which causes these types of undo/redo bugs with re-editable shapes.