|
@@ -40,7 +40,7 @@ namespace PixiEditor.Models.Controllers
|
|
|
document.LayerStructure,
|
|
|
document.Width,
|
|
|
document.Height,
|
|
|
- document.ToSerializable());
|
|
|
+ null/*document.ToSerializable()*/);
|
|
|
}
|
|
|
|
|
|
private static Surface CreateMaskedCombinedSurface(Layer[] layers, LayerStructure structure, Layer selLayer)
|
|
@@ -63,6 +63,8 @@ namespace PixiEditor.Models.Controllers
|
|
|
{
|
|
|
if (!ClipboardHelper.TryClear())
|
|
|
return;
|
|
|
+ if (layers.Length == 0)
|
|
|
+ return;
|
|
|
|
|
|
using Surface surface = CreateMaskedCombinedSurface(layers, structure, selLayer);
|
|
|
DataObject data = new DataObject();
|