From 636e82c0a73ea6eb67074887f065d20e455bda97 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 26 Jan 2018 19:58:09 +0000 Subject: Fix a wrong variable check in CFX_BilinearMatrix. This has existed since the initial PDFium check in. BUG=chromium:805881 Change-Id: I34b79d61c753d15d0f112c12f3dee43973403673 Reviewed-on: https://pdfium-review.googlesource.com/24090 Reviewed-by: Henrique Nakashima Commit-Queue: Lei Zhang --- core/fxge/dib/cfx_imagetransformer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/fxge/dib/cfx_imagetransformer.cpp b/core/fxge/dib/cfx_imagetransformer.cpp index 37e2be0431..e514153acf 100644 --- a/core/fxge/dib/cfx_imagetransformer.cpp +++ b/core/fxge/dib/cfx_imagetransformer.cpp @@ -192,7 +192,7 @@ class CFX_BilinearMatrix : public CPDF_FixedMatrix { *res_y = static_cast(fmodf(val.second, kBase)); if (*res_x < 0 && *res_x > -kBase) *res_x = kBase + *res_x; - if (*res_y < 0 && *res_x > -kBase) + if (*res_y < 0 && *res_y > -kBase) *res_y = kBase + *res_y; } }; -- cgit v1.2.3