Don't duplicate global colormap as local colormap in GifEncoder

This commit is contained in:
David Capello 2015-07-31 12:49:04 -03:00
parent 40c0ef2d48
commit 3d70c0193d

View File

@ -1072,7 +1072,7 @@ private:
frameBounds.x, frameBounds.y, frameBounds.x, frameBounds.y,
frameBounds.w, frameBounds.h, frameBounds.w, frameBounds.h,
m_interlaced ? 1: 0, m_interlaced ? 1: 0,
colormap) == GIF_ERROR) { (colormap != m_globalColormap ? colormap: nullptr)) == GIF_ERROR) {
throw Exception("Error writing GIF frame %d.\n", (int)frameNum); throw Exception("Error writing GIF frame %d.\n", (int)frameNum);
} }