summaryrefslogtreecommitdiffstats
path: root/xcf2png.c
diff options
context:
space:
mode:
Diffstat (limited to 'xcf2png.c')
-rw-r--r--xcf2png.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xcf2png.c b/xcf2png.c
index 025b148..0643d24 100644
--- a/xcf2png.c
+++ b/xcf2png.c
@@ -13,7 +13,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "xcftools.h"
@@ -113,7 +113,7 @@ init_output(void)
invert_mono = 1 ;
} else {
unsigned i ;
- int need_trans = 0 ;
+ int need_trans = flatspec.default_pixel == FORCE_ALPHA_CHANNEL ;
color_type = PNG_COLOR_TYPE_PALETTE ;
pngpalette = xcfmalloc(paletteSize*sizeof(png_color)) ;
ptrans = xcfmalloc(paletteSize);