]> www.fi.muni.cz Git - evince.git/commitdiff
:Thumb): Added a flag for keeping Thumb data validity and the method to BEFORE_XPDF_3_MERGE
authorRemi Cohen-Scali <rcoscali@cvs.gnome.org>
Sun, 9 May 2004 07:10:50 +0000 (07:10 +0000)
committerRémi Cohen-Scali <rcoscali@src.gnome.org>
Sun, 9 May 2004 07:10:50 +0000 (07:10 +0000)
2004-05-09  Remi Cohen-Scali  <rcoscali@cvs.gnome.org>

* xpdf/Thumb.h:
* xpdf/Thumb.cc (Thumb::Thumb): Added a flag for keeping
Thumb data validity and the method to access it.

pdf/xpdf/Thumb.cc
pdf/xpdf/Thumb.h

index bc735b8f4b4f6bcc04f008d0297290afd93d165f..0fdbf541a55ce6580c5c359f8d7440d5898c3f90 100644 (file)
@@ -42,7 +42,8 @@
 
 Thumb::Thumb(XRef *xrefA, Object *obj) :
   xref(xrefA),
-  str(NULL)
+  str(NULL),
+  ok_flag(0)
 {
        Object obj1, obj2;
        Dict *dict;
@@ -139,6 +140,8 @@ Thumb::Thumb(XRef *xrefA, Object *obj) :
                obj1.free ();
 
                str->addFilters(obj);
+
+               ok_flag = 1; 
        }
        while (0);      
 }
index 2042acd3ac791b9e8c446c793ae993509f4bc454..968b0c423c6bd7e81a026598cb04e707fd745971 100644 (file)
@@ -50,12 +50,15 @@ class Thumb {
 
        unsigned char *getPixbufData();
 
+       char ok() {return ok_flag != 0; }; 
+
       private:
         XRef *xref;
        Stream *str;
        GfxImageColorMap *colorMap;
         int width, height, bits;
        int length;
+       char ok_flag; 
 };
 
 #endif