summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-03-13 15:10:18 +0000
committerRobin Watts <robin.watts@artifex.com>2012-03-13 15:10:18 +0000
commit7fa60e876f733f3bd90787145d9a7eb0eb91e9a2 (patch)
tree8d81798c50b166d3434606ba5828d64cb18c9bb9 /fitz
parent7eca6b0d05443e85ecd7bb107dccf410696364aa (diff)
downloadmupdf-7fa60e876f733f3bd90787145d9a7eb0eb91e9a2.tar.xz
Fix building on windows.
Fix a couple of silly problems (one gccism, and one windows specific bug).
Diffstat (limited to 'fitz')
-rw-r--r--fitz/dev_text.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fitz/dev_text.c b/fitz/dev_text.c
index b92372a1..bb6aaac9 100644
--- a/fitz/dev_text.c
+++ b/fitz/dev_text.c
@@ -303,6 +303,7 @@ fz_text_extract(fz_context *ctx, fz_text_device *dev, fz_text *text, fz_matrix c
float descender = 0;
int multi;
int i, j, err;
+ int lastchar = ' ';
if (text->len == 0)
return;
@@ -342,8 +343,6 @@ fz_text_extract(fz_context *ctx, fz_text_device *dev, fz_text *text, fz_matrix c
size = fz_matrix_expansion(trm);
- int lastchar = ' ';
-
for (i = 0; i < text->len; i++)
{
/* Calculate new pen location and delta */