summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-01-26 19:58:09 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-26 19:58:09 +0000
commit636e82c0a73ea6eb67074887f065d20e455bda97 (patch)
treecb836480fc4f35222b25163d51167212b4d670ed
parentc68e08113892daf681e1f4b73e0c420110dfeb6e (diff)
downloadpdfium-636e82c0a73ea6eb67074887f065d20e455bda97.tar.xz
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 <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
-rw-r--r--core/fxge/dib/cfx_imagetransformer.cpp2
1 files changed, 1 insertions, 1 deletions
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<int>(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;
}
};