]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/Object.cc
Scroll at the top of the page when changing page
[evince.git] / pdf / xpdf / Object.cc
index a1c71af0f75eb909625edbcc5c629cd4d265cd31..ddd6da693cd771902347191b52efff2197366b76 100644 (file)
@@ -2,7 +2,7 @@
 //
 // Object.cc
 //
-// Copyright 1996-2002 Glyph & Cog, LLC
+// Copyright 1996-2003 Glyph & Cog, LLC
 //
 //========================================================================
 
@@ -58,6 +58,13 @@ Object *Object::initDict(XRef *xref) {
   return this;
 }
 
+Object *Object::initDict(Dict *dictA) {
+  initObj(objDict);
+  dict = dictA;
+  dict->incRef();
+  return this;
+}
+
 Object *Object::initStream(Stream *streamA) {
   initObj(objStream);
   stream = streamA;