aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Array.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_Array.cc')
-rw-r--r--libqpdf/QPDF_Array.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqpdf/QPDF_Array.cc b/libqpdf/QPDF_Array.cc
index f33ad99d..6e8db5e9 100644
--- a/libqpdf/QPDF_Array.cc
+++ b/libqpdf/QPDF_Array.cc
@@ -31,7 +31,7 @@ QPDF_Array::create(SparseOHArray const& items)
std::shared_ptr<QPDFObject>
QPDF_Array::copy(bool shallow)
{
- return create(elements);
+ return create(shallow ? elements : elements.copy());
}
void