Index: fpdfsdk/fpdfppo.cpp |
diff --git a/fpdfsdk/fpdfppo.cpp b/fpdfsdk/fpdfppo.cpp |
index 97fd390cb3ccbb28f628e95660752795e4f48c6c..85dba5e9750f5f45d9b03cc5d4a71a760c78f186 100644 |
--- a/fpdfsdk/fpdfppo.cpp |
+++ b/fpdfsdk/fpdfppo.cpp |
@@ -407,6 +407,6 @@ DLLEXPORT FPDF_BOOL STDCALL FPDF_CopyViewerPreferences(FPDF_DOCUMENT dest_doc, |
if (!pDstDict) |
return FALSE; |
- pDstDict->SetAt("ViewerPreferences", pSrcDict->Clone(TRUE)); |
+ pDstDict->SetAt("ViewerPreferences", pSrcDict->CloneDirectObject()); |
return TRUE; |
} |