diff options
author | Albert Astals Cid <aacid@kde.org> | 2012-08-30 00:43:45 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2012-08-30 00:46:02 +0200 |
commit | 46948868dee6d4e68b658c68d7df482590e34da3 (patch) | |
tree | 5ff4b7f9762155bde3029a2b0e269ba1e5a31a1e | |
parent | debc8fb497bc22c0f9f34d785852981a87475c30 (diff) |
Accept FileSpec as Dict too and not only as Ref
File to try in KDE bug #306008
-rw-r--r-- | poppler/Catalog.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc index 664c4214..0f42356f 100644 --- a/poppler/Catalog.cc +++ b/poppler/Catalog.cc @@ -14,7 +14,7 @@ // under GPL version 2 or later // // Copyright (C) 2005 Kristian Høgsberg <krh@redhat.com> -// Copyright (C) 2005-2011 Albert Astals Cid <aacid@kde.org> +// Copyright (C) 2005-2012 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2005 Jeff Muizelaar <jrmuizel@nit.ca> // Copyright (C) 2005 Jonathan Blandford <jrb@redhat.com> // Copyright (C) 2005 Marco Pesenti Gritti <mpg@redhat.com> @@ -462,6 +462,8 @@ FileSpec *Catalog::embeddedFile(int i) Object fsDict; embeddedFile = new FileSpec(obj.fetch(xref, &fsDict)); fsDict.free(); + } else if (obj.isDict()) { + embeddedFile = new FileSpec(&obj); } else { Object null; embeddedFile = new FileSpec(&null); |