shithub: jbig2

Download patch

ref: a4d66009ee206247b2d9e61615a6fefbc49468c4
parent: 804b91c488cbb7ea22bad56edd0b39384066c908
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Dec 1 14:50:07 EST 2004

Use the correct definition of the SDREFAGG flag to switch GR_stats allocation.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@345 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -572,7 +572,7 @@
 	params.SDTEMPLATE == 1 ? 8192 : 1024;
       GB_stats = jbig2_alloc(ctx->allocator, stats_size);
       memset(GB_stats, 0, stats_size);
-      if (!params.SDREFAGG) {
+      if (params.SDREFAGG) {
 	stats_size = params.SDRTEMPLATE ? 1 << 10 : 1 << 13;
 	GR_stats = jbig2_alloc(ctx->allocator, stats_size);
 	memset(GR_stats, 0, stats_size);