Don't copy LockMove flag in Document::copyLayerContent() for a second background

This commit is contained in:
David Capello 2015-03-17 10:07:12 -03:00
parent 31e3a693cd
commit 750c7b5414

View File

@ -350,7 +350,7 @@ void Document::copyLayerContent(const Layer* sourceLayer0, Document* destDoc, La
// Remove the "background" flag if the destDoc already has a background layer.
if (((int)dstFlags & (int)LayerFlags::Background) == (int)LayerFlags::Background &&
(destDoc->sprite()->backgroundLayer())) {
dstFlags = (LayerFlags)((int)dstFlags ^ (int)LayerFlags::Background);
dstFlags = (LayerFlags)((int)dstFlags & ~(int)(LayerFlags::BackgroundLayerFlags));
}
// Copy the layer name