]> www.fi.muni.cz Git - evince.git/commitdiff
Fix infinite loop when loading Type1 fonts
authorAleksey Kliger <akliger@gmail.com>
Mon, 9 May 2005 10:31:38 +0000 (10:31 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 9 May 2005 10:31:38 +0000 (10:31 +0000)
2005-05-09  Aleksey Kliger <akliger@gmail.com>

        * dvi/mdvi-lib/tfmfile.c: (lookup_font_metrics):

        Fix infinite loop when loading Type1 fonts

ChangeLog
dvi/mdvi-lib/tfmfile.c

index 8b4f96bfd4e7d753db72426b27e03c3c2164536c..3f37363a12b8822f0b29b937b26c65650a76f02f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-09  Aleksey Kliger <akliger@gmail.com>
+
+       * dvi/mdvi-lib/tfmfile.c: (lookup_font_metrics):
+
+       Fix infinite loop when loading Type1 fonts
+
 2005-05-09  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * data/evince-ui.xml:
index 45b78506433727da74917e094bec87b643e924ec..913cd0e7ea1ad13c466844eea5edca04eb3796ce 100644 (file)
@@ -601,6 +601,7 @@ char        *lookup_font_metrics(const char *name, int *type)
 #endif
                case DviFontTFM:
                        file = kpse_find_tfm(name);
+                        *type = DviFontTFM;
                        break;
                case DviFontOFM: {
                        file = kpse_find_ofm(name);