From 7675b369322e3fbcb70682c2ceee417997633205 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Fri, 15 Jun 2018 15:32:14 -0400 Subject: SkPDF: Annotations should be indirect objects Bug: skia:8068 Change-Id: Ib761caa06e6dc2ce37fcd23bd662b13dbb5623db Reviewed-on: https://skia-review.googlesource.com/135300 Auto-Submit: Hal Canary Commit-Queue: Ben Wagner Reviewed-by: Ben Wagner --- src/pdf/SkPDFDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pdf') diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 4f214c12f0..d8160a0d96 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -1655,12 +1655,12 @@ void SkPDFDevice::appendAnnotations(SkPDFArray* array) const { for (const RectWithData& rectWithURL : fLinkToURLs) { SkRect r; fInitialTransform.mapRect(&r, rectWithURL.rect); - array->appendObject(create_link_to_url(rectWithURL.data.get(), r)); + array->appendObjRef(create_link_to_url(rectWithURL.data.get(), r)); } for (const RectWithData& linkToDestination : fLinkToDestinations) { SkRect r; fInitialTransform.mapRect(&r, linkToDestination.rect); - array->appendObject( + array->appendObjRef( create_link_named_dest(linkToDestination.data.get(), r)); } } -- cgit v1.2.3