Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/Thumb.cc5
-rw-r--r--pdf/xpdf/Thumb.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/pdf/xpdf/Thumb.cc b/pdf/xpdf/Thumb.cc
index bc735b8..0fdbf54 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 2042acd..968b0c4 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