From: Remi Cohen-Scali Date: Sun, 9 May 2004 07:10:50 +0000 (+0000) Subject: :Thumb): Added a flag for keeping Thumb data validity and the method to X-Git-Tag: BEFORE_XPDF_3_MERGE^0 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a6694988ca31ee80cb484c575106e7010731e06b;p=evince.git :Thumb): Added a flag for keeping Thumb data validity and the method to 2004-05-09 Remi Cohen-Scali * xpdf/Thumb.h: * xpdf/Thumb.cc (Thumb::Thumb): Added a flag for keeping Thumb data validity and the method to access it. --- diff --git a/pdf/xpdf/Thumb.cc b/pdf/xpdf/Thumb.cc index bc735b8f..0fdbf541 100644 --- a/pdf/xpdf/Thumb.cc +++ b/pdf/xpdf/Thumb.cc @@ -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); } diff --git a/pdf/xpdf/Thumb.h b/pdf/xpdf/Thumb.h index 2042acd3..968b0c42 100644 --- a/pdf/xpdf/Thumb.h +++ b/pdf/xpdf/Thumb.h @@ -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