[poppler] poppler/glib: poppler-document.cc,1.11,1.12
Jonathan Blandford
jrb at freedesktop.org
Fri Apr 29 12:37:09 PDT 2005
Update of /cvs/poppler/poppler/glib
In directory gabe:/tmp/cvs-serv3321/glib
Modified Files:
poppler-document.cc
Log Message:
Fri Apr 29 14:54:44 2005 Jonathan Blandford <jrb at redhat.com>
* goo/GooTimer.h: New class to do simple timing checks.
* glib/poppler-document.c: Patch from Martin Kretzschmar to really
set the PDF version correct. Third time's the charm.
Index: poppler-document.cc
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-document.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- poppler-document.cc 21 Apr 2005 05:20:25 -0000 1.11
+++ poppler-document.cc 29 Apr 2005 19:37:07 -0000 1.12
@@ -303,7 +303,9 @@
info_dict_get_string (obj.getDict(), "Title", value);
break;
case PROP_FORMAT:
- str = g_strdup_printf ("PDF-%.2g", document->doc->getPDFVersion ());
+ str = g_strndup("PDF-", 15); /* allocates 16 chars, pads with \0s */
+ g_ascii_formatd (str + 4, 15 + 1 - 4,
+ "%.2g", document->doc->getPDFVersion ());
g_value_take_string (value, str);
break;
case PROP_AUTHOR:
More information about the poppler
mailing list