ref: ccd602286a7f176ffb0fffc68be453d443f0644e
parent: c3f6e30d4f07e021cc818e584b085456b25865e6
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Nov 24 14:29:07 EST 2004
Invert the check for refinement region movable template offsets. This was the last bug in the refinement region segment handling code, we now handle the ubc 042_22.jb2 test file! git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@337 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_refinement.c
+++ b/jbig2_refinement.c
@@ -346,7 +346,7 @@
offset += 18;
/* 7.4.7.3 */
- if (params.GRTEMPLATE) {
+ if (!params.GRTEMPLATE) {
if (segment->data_length < 22)
return jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
"Segment too short");