Fix minor formatting issues introduced in #812

This commit is contained in:
David Capello 2015-09-21 17:47:42 -03:00
parent 6a0f4afab2
commit 9d8f859438

View File

@ -48,13 +48,11 @@ void FlattenLayers::onExecute()
color_t bgcolor; // The background color to use for flatLayer.
flatLayer = sprite->backgroundLayer();
if (flatLayer && flatLayer->isVisible())
{
if (flatLayer && flatLayer->isVisible()) {
// There exists a visible background layer, so we will flatten onto that.
bgcolor = doc->bgColor(flatLayer);
}
else
{
else {
// Create a new transparent layer to flatten everything onto.
flatLayer = new LayerImage(sprite);
ASSERT(flatLayer->isVisible());