Commit 8d5931e6 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

AnnotAppearance::getAppearanceStream: Save a copy() call

parent c3a2c11a
...@@ -905,13 +905,12 @@ Object AnnotAppearance::getAppearanceStream(AnnotAppearanceType type, const char ...@@ -905,13 +905,12 @@ Object AnnotAppearance::getAppearanceStream(AnnotAppearanceType type, const char
break; break;
} }
Object res;
if (apData.isDict() && state) if (apData.isDict() && state)
res = apData.dictLookupNF(state); return apData.dictLookupNF(state);
else if (apData.isRef()) else if (apData.isRef())
res = apData.copy(); return apData;
return res; return Object();
} }
std::unique_ptr<GooString> AnnotAppearance::getStateKey(int i) { std::unique_ptr<GooString> AnnotAppearance::getStateKey(int i) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment