]> git.pld-linux.org Git - packages/swftools.git/blob - swftools-swfstrings-print_unknown_chars.patch
- rebuild with poppler 0.53
[packages/swftools.git] / swftools-swfstrings-print_unknown_chars.patch
1 --- swftools-0.9.0/lib/modules/swftext.c~       2009-01-27 18:18:37.000000000 +0100
2 +++ swftools-0.9.0/lib/modules/swftext.c        2010-01-18 14:29:10.530704314 +0100
3 @@ -447,8 +447,12 @@
4  
5                 if (id == fid) {
6                     if (jobs & FEDTJ_PRINT) {
7 -                       int code = f->glyph2ascii[glyph];
8 -                       printf("%lc", code);
9 +                       if ( f->glyph2ascii ) {
10 +                               int code = f->glyph2ascii[glyph];
11 +                               printf("%lc", code);
12 +                       } else {
13 +                               printf("<?%d>", glyph);
14 +                       }
15                     }
16                     if (jobs & FEDTJ_MODIFY)
17                         f->glyph[glyph].advance = adv * 20;     //?
This page took 0.103485 seconds and 3 git commands to generate.