diff options
Diffstat (limited to 'experimental/PdfViewer/SkPdfRenderer.cpp')
-rw-r--r-- | experimental/PdfViewer/SkPdfRenderer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/experimental/PdfViewer/SkPdfRenderer.cpp b/experimental/PdfViewer/SkPdfRenderer.cpp index 6c6c6669da..2d79f13077 100644 --- a/experimental/PdfViewer/SkPdfRenderer.cpp +++ b/experimental/PdfViewer/SkPdfRenderer.cpp @@ -1782,7 +1782,7 @@ static SkPdfResult PdfOp_TJ(SkPdfContext* pdfContext, SkCanvas* canvas, PdfToken SkPdfReportUnexpectedType(kIgnoreError_SkPdfIssueSeverity, "element [i] is null, no element should be null", array, - SkPdfNativeObject::_kAnyString_PdfObjectType || + SkPdfNativeObject::_kAnyString_PdfObjectType | SkPdfNativeObject::_kNumber_PdfObjectType, pdfContext); } else if( (*array)[i]->isAnyString()) { @@ -1805,7 +1805,7 @@ static SkPdfResult PdfOp_TJ(SkPdfContext* pdfContext, SkCanvas* canvas, PdfToken pdfContext->fGraphicsState.fMatrixTm.preConcat(matrix); } else { SkPdfReportUnexpectedType(kIgnoreError_SkPdfIssueSeverity, "wrong type", (*array)[i], - SkPdfNativeObject::kArray_PdfObjectType || + SkPdfNativeObject::kArray_PdfObjectType | SkPdfNativeObject::_kNumber_PdfObjectType, pdfContext); } @@ -2521,7 +2521,7 @@ static SkPdfResult PdfOp_gs(SkPdfContext* pdfContext, SkCanvas* canvas, PdfToken skpdfGraphicsStateApplyBM_array(pdfContext, gs->getBMAsArray(pdfContext->fPdfDoc)); } else { SkPdfReportUnexpectedType(kIgnoreError_SkPdfIssueSeverity, "wrong type", gs->get("BM"), - SkPdfNativeObject::kArray_PdfObjectType || + SkPdfNativeObject::kArray_PdfObjectType | SkPdfNativeObject::kName_PdfObjectType, pdfContext); } } @@ -2536,7 +2536,7 @@ static SkPdfResult PdfOp_gs(SkPdfContext* pdfContext, SkCanvas* canvas, PdfToken SkPdfReportUnexpectedType(kIgnoreError_SkPdfIssueSeverity, "wrong type", gs->get("BM"), - SkPdfNativeObject::kDictionary_PdfObjectType || + SkPdfNativeObject::kDictionary_PdfObjectType | SkPdfNativeObject::kName_PdfObjectType, pdfContext); } |