Fix reversed logic in Document::duplicate().

This commit is contained in:
David Capello 2011-03-28 23:20:03 -03:00
parent a17c767e65
commit 4aa039d40b

View File

@ -364,7 +364,7 @@ Document* Document::duplicate(DuplicateType type) const
// Configure the layer as background only if the original
// sprite has a background layer.
if (sourceSprite->getBackgroundLayer() == NULL)
if (sourceSprite->getBackgroundLayer() != NULL)
flatLayer->configureAsBackground();
}
break;