Commit 8579a7b9 authored by Albert Astals Cid's avatar Albert Astals Cid

GfxICCBasedColorSpace::parse: Save unneeded copy() call

parent 4b00c90d
......@@ -1828,9 +1828,9 @@ GfxColorSpace *GfxICCBasedColorSpace::parse(Array *arr, OutputDev *out, GfxState
error(errSyntaxError, -1, "Bad ICCBased color space");
return nullptr;
}
obj1 = arr->getNF(1).copy();
if (obj1.isRef()) {
iccProfileStreamA = obj1.getRef();
const Object &obj1Ref = arr->getNF(1);
if (obj1Ref.isRef()) {
iccProfileStreamA = obj1Ref.getRef();
} else {
iccProfileStreamA.num = 0;
iccProfileStreamA.gen = 0;
......
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