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.
Thumb::Thumb(XRef *xrefA, Object *obj) :
xref(xrefA),
- str(NULL)
+ str(NULL),
+ ok_flag(0)
{
Object obj1, obj2;
Dict *dict;
obj1.free ();
str->addFilters(obj);
+
+ ok_flag = 1;
}
while (0);
}
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