[poppler] poppler/Annot.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Nov 14 13:59:10 UTC 2018
poppler/Annot.cc | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit 8d5931e6c585fcca27d127b0b804bc19d9188e49
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed Nov 14 14:58:41 2018 +0100
AnnotAppearance::getAppearanceStream: Save a copy() call
diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 76edfc9c..e7bf7ca6 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -905,13 +905,12 @@ Object AnnotAppearance::getAppearanceStream(AnnotAppearanceType type, const char
break;
}
- Object res;
if (apData.isDict() && state)
- res = apData.dictLookupNF(state);
+ return apData.dictLookupNF(state);
else if (apData.isRef())
- res = apData.copy();
+ return apData;
- return res;
+ return Object();
}
std::unique_ptr<GooString> AnnotAppearance::getStateKey(int i) {
More information about the poppler
mailing list