git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
978de5f
)
always assume space chars are at 32
author
Matthias Kramm
<kramm@quiss.org>
Wed, 17 Mar 2010 21:01:54 +0000
(14:01 -0700)
committer
Matthias Kramm
<kramm@quiss.org>
Wed, 17 Mar 2010 21:03:34 +0000
(14:03 -0700)
lib/pdf/InfoOutputDev.cc
patch
|
blob
|
history
diff --git
a/lib/pdf/InfoOutputDev.cc
b/lib/pdf/InfoOutputDev.cc
index
bd1a0b5
..
5990d4f
100644
(file)
--- 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)