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

AnnotAppearance::getAppearanceStream: Save a copy() call

parent c3a2c11a
......@@ -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) {
......
Markdown is supported
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