[poppler] poppler/glib: poppler-document.cc,1.19,1.20

Kristian Hogsberg krh at freedesktop.org
Mon Jun 20 10:38:35 PDT 2005


Update of /cvs/poppler/poppler/glib
In directory gabe:/tmp/cvs-serv31521/glib

Modified Files:
	poppler-document.cc 
Log Message:
2005-06-20  Kristian Høgsberg  <krh at redhat.com>

        * glib/poppler-document.cc:
        * poppler/FontInfo.cc: Fixes from Marco to handle fonts without
        name (typically type 3 fonts) and fix an iterator bug.



Index: poppler-document.cc
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-document.cc,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- poppler-document.cc	15 Jun 2005 15:02:46 -0000	1.19
+++ poppler-document.cc	20 Jun 2005 17:38:28 -0000	1.20
@@ -777,11 +777,17 @@
 const char *
 poppler_fonts_iter_get_name (PopplerFontsIter *iter)
 {
+	GooString *name;
 	FontInfo *info;
 
 	info = (FontInfo *)iter->items->get (iter->index);
 
-	return info->getName()->getCString();
+	name = info->getName();
+	if (name != NULL) {
+		return info->getName()->getCString();
+	} else {
+		return NULL;
+	}
 }
 
 gboolean



More information about the poppler mailing list