]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/CharCodeToUnicode.cc
Reused eog HIG dialog in GPdf.
[evince.git] / pdf / xpdf / CharCodeToUnicode.cc
index 912981e99e96f6562ad9a53c77aef56e043457a5..a374b1bc352259a8b4e0702de5b2f5b85298e1d0 100644 (file)
@@ -2,15 +2,16 @@
 //
 // CharCodeToUnicode.cc
 //
-// Copyright 2001-2002 Glyph & Cog, LLC
+// Copyright 2001-2003 Glyph & Cog, LLC
 //
 //========================================================================
 
-#ifdef __GNUC__
+#include <aconf.h>
+
+#ifdef USE_GCC_PRAGMAS
 #pragma implementation
 #endif
 
-#include <aconf.h>
 #include <stdio.h>
 #include <string.h>
 #include "gmem.h"
@@ -85,6 +86,7 @@ CharCodeToUnicode *CharCodeToUnicode::parseCIDToUnicode(GString *collectionA) {
     }
     ++mapLenA;
   }
+  fclose(f);
 
   ctu = new CharCodeToUnicode(collectionA->copy(), mapA, mapLenA, gTrue,
                              NULL, 0);
@@ -222,7 +224,7 @@ void CharCodeToUnicode::parseCMap1(int (*getCharFunc)(void *), void *data,
            map[i] = 0;
          }
        }
-       if (n3 == 6) {
+       if (n3 <= 6) {
          if (sscanf(tok3 + 1, "%x", &u) != 1) {
            error(-1, "Illegal entry in bfrange block in ToUnicode CMap");
            continue;