[poppler] utils/HtmlFonts.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Sep 20 06:46:45 PDT 2008
utils/HtmlFonts.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8ccb1bb651b129875ef802356c4a229b2ce31973
Author: Tomas Are Haavet <tomasare at gmail.com>
Date: Sat Sep 20 15:45:47 2008 +0200
Initialize pos the correct value to not have crashes
diff --git a/utils/HtmlFonts.cc b/utils/HtmlFonts.cc
index 3598e7f..51fcf16 100644
--- a/utils/HtmlFonts.cc
+++ b/utils/HtmlFonts.cc
@@ -131,7 +131,8 @@ HtmlFont::HtmlFont(GooString* ftname,int _size, GfxRGB rgb){
}
pos=i;
delete fontname;
- }
+ } else
+ pos = font_num;
if (!DefaultFont) DefaultFont=new GooString(fonts[font_num].name);
}
More information about the poppler
mailing list