shithub: jbig2

Download patch

ref: 3421407ecff3d48427a0a848f58a0d1affe2c44b
parent: 34abc7a906ef9716d01ec93d74036a0be53a742c
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Mon May 15 17:16:42 EDT 2006

Correct a typo resulting in inproper glyph placement with transposed text and a top left reference corner. Fixes bug 688645.


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

--- a/jbig2_text.c
+++ b/jbig2_text.c
@@ -416,7 +416,7 @@
 		}
 	    } else { /* TRANSPOSED */
 		switch (params->REFCORNER) {
-		case JBIG2_CORNER_TOPLEFT: y = T; x = T; break;
+		case JBIG2_CORNER_TOPLEFT: y = S; x = T; break;
 		case JBIG2_CORNER_TOPRIGHT: y = S - IB->width + 1; x = T; break;
 		case JBIG2_CORNER_BOTTOMLEFT: y = S; x = T - IB->height + 1; break;
 		case JBIG2_CORNER_BOTTOMRIGHT: y = S - IB->width + 1; x = T - IB->height + 1; break;