jbig2dec

Ralph Giles <[email protected]> Thu, 20 Jun 2002 08:40:38 -0700
Newsgroups gmane.comp.printing.ghostscript.jbig2dec.cvs
Message-ID <[email protected]>
Update of /cvsroot/jbig2dec/jbig2dec
In directory usw-pr-cvs1:/tmp/cvs-serv14092

Modified Files:
	jbig2_page.c 
Log Message:
Fix a precedence bug which prevented using the first page structure.


Index: jbig2_page.c
===================================================================
RCS file: /cvsroot/jbig2dec/jbig2dec/jbig2_page.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- jbig2_page.c	18 Jun 2002 13:40:29 -0000	1.3
+++ jbig2_page.c	20 Jun 2002 15:40:36 -0000	1.4
@@ -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");