shithub: jbig2

Download patch

ref: 22320087293f0de716d1e214ee74e1e1da822234
parent: 0cad58a5a6857aebb665c79706ba33acabc550fd
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Thu Jun 20 11:40:36 EDT 2002

Fix a precedence bug which prevented using the first page structure.


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

--- a/jbig2_page.c
+++ b/jbig2_page.c
@@ -8,7 +8,7 @@
     the Free Software Foundation; either version 2 of the License, or
     (at your option) any later version.
 
-    $Id: jbig2_page.c,v 1.3 2002/06/18 13:40:29 giles Exp $
+    $Id: jbig2_page.c,v 1.4 2002/06/20 15:40:36 giles Exp $
 */
 
 #include <stdio.h>
@@ -56,8 +56,8 @@
 
     /* a new page info segment implies the previous page is finished */
     page = &(ctx->pages[ctx->current_page]);
-    if ((page->number != 0) && 
-            (page->state == JBIG2_PAGE_NEW) || (page->state == JBIG2_PAGE_FREE)) {
+    if ((page->number != 0) &&
+            ((page->state == JBIG2_PAGE_NEW) || (page->state == JBIG2_PAGE_FREE))) {
         page->state = JBIG2_PAGE_COMPLETE;
         jbig2_error(ctx, JBIG2_SEVERITY_WARNING, sh->segment_number,
             "unexpected page info segment, marking previous page finished");