summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-11-09 11:25:24 +0100
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-11-09 11:25:24 +0100
commit3fead2a3b53681ef95116f18f17f1a9febec6e48 (patch)
tree4aaa72ec851d6e34d2853aa50d3e73354e45cf8d
parentac4955d03a532cab1933698aeb667d44300e52d0 (diff)
Transitions dictionary can be a Ref too
-rw-r--r--poppler/Page.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Page.cc b/poppler/Page.cc
index 67dc6323..d52cb773 100644
--- a/poppler/Page.cc
+++ b/poppler/Page.cc
@@ -269,7 +269,7 @@ Page::Page(XRef *xrefA, int numA, Dict *pageDict, Ref pageRefA, PageAttrs *attrs
// transtion
pageDict->lookupNF("Trans", &trans);
- if (!(trans.isDict() || trans.isNull())) {
+ if (!(trans.isRef() || trans.isDict() || trans.isNull())) {
error(-1, "Page transition object (page %d) is wrong type (%s)",
num, trans.getTypeName());
trans.free();