[poppler] poppler/poppler: Catalog.cc,1.7,1.8

Kristian Hogsberg krh at freedesktop.org
Mon Apr 18 21:28:17 PDT 2005


Update of /cvs/poppler/poppler/poppler
In directory gabe:/tmp/cvs-serv9122/poppler

Modified Files:
	Catalog.cc 
Log Message:
Tue Apr 19 00:20:08 2005  Kristian Høgsberg  <krh at redhat.com>

	* poppler/Catalog.cc: Fix from Marco to make sure we always
	initialize Catalog::pageLabelInfo.


Index: Catalog.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/Catalog.cc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Catalog.cc	16 Apr 2005 18:57:44 -0000	1.7
+++ Catalog.cc	19 Apr 2005 04:28:15 -0000	1.8
@@ -41,6 +41,7 @@
   pageRefs = NULL;
   numPages = pagesSize = 0;
   baseURI = NULL;
+  pageLabelInfo = NULL;
 
   xref->getCatalog(&catDict);
   if (!catDict.isDict()) {
@@ -101,8 +102,6 @@
 
   if (catDict.dictLookup("PageLabels", &obj)->isDict())
     pageLabelInfo = new PageLabelInfo(&obj, numPages);
-  else
-    pageLabelInfo = NULL;
   obj.free();
 
   // read page mode



More information about the poppler mailing list