aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFDevice.cpp
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2018-06-15 15:32:14 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-06-15 21:18:15 +0000
commit7675b369322e3fbcb70682c2ceee417997633205 (patch)
treee33223e22c989ec322f0e5ba4117b27bada179d5 /src/pdf/SkPDFDevice.cpp
parent1adfbd594c5d66ba069c8538b2e7923679a22a08 (diff)
SkPDF: Annotations should be indirect objects
Bug: skia:8068 Change-Id: Ib761caa06e6dc2ce37fcd23bd662b13dbb5623db Reviewed-on: https://skia-review.googlesource.com/135300 Auto-Submit: Hal Canary <halcanary@google.com> Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r--src/pdf/SkPDFDevice.cpp4
1 files changed, 2 insertions, 2 deletions
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));
}
}