utils/HtmlFonts.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 8ccb1bb651b129875ef802356c4a229b2ce31973
Author: Tomas Are Haavet <[EMAIL PROTECTED]>
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);
}
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler