From 84b0118c042ec57f01f862087deb9e1443efeb9e Mon Sep 17 00:00:00 2001 From: hooper114 Date: Sun, 7 Jun 2009 09:43:37 +0000 Subject: [PATCH] Bug fix: Leading zeroes make ISBN wrong length --- backend/upcean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/upcean.c b/backend/upcean.c index f8f6e0b2..7ac2fb97 100644 --- a/backend/upcean.c +++ b/backend/upcean.c @@ -546,7 +546,7 @@ void ean_leading_zeroes(struct zint_symbol *symbol, unsigned char source[], unsi if(first_len <= 6) { zfirst_len = 6; } break; case BARCODE_ISBNX: - if(first_len <= 11) { zfirst_len = 11; } + if(first_len <= 9) { zfirst_len = 9; } break; } if(second_len <= 5) { zsecond_len = 5; }