From 4aa039d40b6d4603ea701e7bbb57cb178fefd7dd Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 28 Mar 2011 23:20:03 -0300 Subject: [PATCH] Fix reversed logic in Document::duplicate(). --- src/document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/document.cpp b/src/document.cpp index 486c07d37..4e9f8b292 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -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;