summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Haibo Huang <hhb@google.com> 2020-04-29 21:11:56 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-04-29 21:11:56 +0000
commitabbe6d35caf326fca88a01c68a101d428b23f76d (patch)
treeae206b1c0d98e3e7a61d4eb0e8ec6403cb56a63e
parent12df9e3d6911f0956b04748fa53aa916e0f7acbf (diff)
parentf63ff6781f5da43d862fa9fd71ad5afbecace74b (diff)
Merge "Fix the use of pdfium"
-rw-r--r--core/jni/android/graphics/pdf/PdfEditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/jni/android/graphics/pdf/PdfEditor.cpp b/core/jni/android/graphics/pdf/PdfEditor.cpp
index 10c30260d7e3..913952f9e76c 100644
--- a/core/jni/android/graphics/pdf/PdfEditor.cpp
+++ b/core/jni/android/graphics/pdf/PdfEditor.cpp
@@ -111,7 +111,7 @@ static void nativeSetTransformAndClip(JNIEnv* env, jclass thiz, jlong documentPt
jlong transformPtr, jint clipLeft, jint clipTop, jint clipRight, jint clipBottom) {
FPDF_DOCUMENT document = reinterpret_cast<FPDF_DOCUMENT>(documentPtr);
- FPDF_PAGE* page = (FPDF_PAGE*) FPDF_LoadPage(document, pageIndex);
+ FPDF_PAGE page = FPDF_LoadPage(document, pageIndex);
if (!page) {
jniThrowException(env, "java/lang/IllegalStateException",
"cannot open page");