|
@@ -124,14 +124,12 @@ namespace PixiEditor.Models.Controllers
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
int resizedCount = 0;
|
|
|
|
|
|
Guid[] guids = layers.Select(x => x.GuidValue).ToArray();
|
|
|
|
|
|
var undoArgs = new object[] { guids, document, new PixelSize(document.Width, document.Height) };
|
|
|
|
|
|
-
|
|
|
foreach (var layer in layers)
|
|
|
{
|
|
|
document.Layers.Add(layer);
|
|
@@ -143,7 +141,6 @@ namespace PixiEditor.Models.Controllers
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
StorageBasedChange change = new StorageBasedChange(document, layers, false);
|
|
|
|
|
|
document.UndoManager.AddUndoChange(change.ToChange(RemoveLayersProcess, undoArgs,
|