From ad99af72e37b3c3ab2a84d544a12c0ac11fa72f0 Mon Sep 17 00:00:00 2001
From: Matthias Kramm <kramm@quiss.org>
Date: Wed, 17 Mar 2010 14:01:54 -0700
Subject: [PATCH] always assume space chars are at 32

---
 lib/pdf/InfoOutputDev.cc |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc
index bd1a0b5..5990d4f 100644
--- a/lib/pdf/InfoOutputDev.cc
+++ b/lib/pdf/InfoOutputDev.cc
@@ -119,14 +119,9 @@ static int findSpace(gfxfont_t*font)
 	gfxglyph_t*g = &font->glyphs[t];
 	if(GLYPH_IS_SPACE(g)) {
 	    if(g->unicode == 32) return t;
-	    if(first_space<0)
-		first_space = t;
 	}
     }
-    if(font->num_glyphs>32 && GLYPH_IS_SPACE(&font->glyphs[32])) {
-	return 32;
-    }
-    return first_space;
+    return -1;
 }
 
 static int addSpace(gfxfont_t*font)
-- 
1.7.10.4