summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit/fxet_edit.cpp
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2016-04-29 18:14:37 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-29 18:14:37 -0700
commit8c32dfa88b9deedb5add135301a0f6b1128882ed (patch)
treeea2b004c4286b3b16113189b16a274dafe9c8163 /fpdfsdk/fxedit/fxet_edit.cpp
parente801d4e064690fbe1815d25d220cfbca79976a4f (diff)
downloadpdfium-8c32dfa88b9deedb5add135301a0f6b1128882ed.tar.xz
Subtract instead of adding the negation.
Do more cleanup in modified files. Review-Url: https://codereview.chromium.org/1938613003
Diffstat (limited to 'fpdfsdk/fxedit/fxet_edit.cpp')
-rw-r--r--fpdfsdk/fxedit/fxet_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/fxedit/fxet_edit.cpp b/fpdfsdk/fxedit/fxet_edit.cpp
index 07a9d864d7..bdd2c75325 100644
--- a/fpdfsdk/fxedit/fxet_edit.cpp
+++ b/fpdfsdk/fxedit/fxet_edit.cpp
@@ -219,7 +219,7 @@ void CFX_Edit_Refresh::Analyse(int32_t nAlignment) {
rcResult.left = rcResult.right - fWidthDiff;
} else {
rcResult.left = rcResult.right;
- rcResult.right += (-fWidthDiff);
+ rcResult.right -= fWidthDiff;
}
}
m_RefreshRects.Add(rcResult);