diff options
author | Matthias Kramm <kramm@quiss.org> | 2012-01-12 15:05:15 -0800 |
---|---|---|
committer | Matthias Kramm <kramm@quiss.org> | 2012-01-12 15:05:55 -0800 |
commit | 2004bf8249e882da1a2f97a6751d9552d555a82e (patch) | |
tree | 389207f86d0cc6811bd79de507f411bf63920cd0 | |
parent | d9afddd85be825c925ec724a80312b2e2433a1c3 (diff) |
fixed segfault in remove_font_transforms
-rw-r--r-- | lib/pdf/InfoOutputDev.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pdf/InfoOutputDev.cc b/lib/pdf/InfoOutputDev.cc index 25204039..edfb7e7e 100644 --- a/lib/pdf/InfoOutputDev.cc +++ b/lib/pdf/InfoOutputDev.cc @@ -594,8 +594,6 @@ int __attribute__((noinline)) int font_classify(fontclass_t*out, gfxmatrix_t*in, const char*id, gfxcolor_t* color) #endif { - out->id = (char*)id; - if(!config_remove_font_transforms) { out->m00 = 1.0; out->m11 = 1.0; @@ -627,6 +625,7 @@ int font_classify(fontclass_t*out, gfxmatrix_t*in, const char*id, gfxcolor_t* co *(U32*)&out->m11 = (*(U32*)&out->m11)&0xffe00000; } } + out->id = (char*)id; out->alpha = color->a?1:0; return 1; |