mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed issue #18
This commit is contained in:
@@ -239,9 +239,11 @@ function HistoryStateAddLayer(layerData, index) {
|
||||
|
||||
this.undo = function() {
|
||||
redoStates.push(this);
|
||||
layers[this.index + 1].selectLayer();
|
||||
|
||||
this.added.canvas.remove();
|
||||
this.added.menuEntry.remove();
|
||||
|
||||
layers.splice(index, 1);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user