| Index: src/pdf/SkPDFDevice.cpp
|
| diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
|
| index a7d2bd459accb39c70518ef21afc1289b30d3723..bb1a805fca608fc338d40bec245e1bed036badee 100644
|
| --- a/src/pdf/SkPDFDevice.cpp
|
| +++ b/src/pdf/SkPDFDevice.cpp
|
| @@ -1550,12 +1550,12 @@ bool SkPDFDevice::handleRectAnnotation(const SkRect& r, const SkMatrix& matrix,
|
| SkData* urlData = annotationInfo->find(SkAnnotationKeys::URL_Key());
|
| if (urlData) {
|
| handleLinkToURL(urlData, r, matrix);
|
| - return p.isNoDrawAnnotation();
|
| + return p.getAnnotation() != NULL;
|
| }
|
| SkData* linkToName = annotationInfo->find(SkAnnotationKeys::Link_Named_Dest_Key());
|
| if (linkToName) {
|
| handleLinkToNamedDest(linkToName, r, matrix);
|
| - return p.isNoDrawAnnotation();
|
| + return p.getAnnotation() != NULL;
|
| }
|
| return false;
|
| }
|
| @@ -1572,7 +1572,7 @@ bool SkPDFDevice::handlePointAnnotation(const SkPoint* points, size_t count,
|
| for (size_t i = 0; i < count; i++) {
|
| defineNamedDestination(nameData, points[i], matrix);
|
| }
|
| - return paint.isNoDrawAnnotation();
|
| + return paint.getAnnotation() != NULL;
|
| }
|
| return false;
|
| }
|
|
|