diff options
author | thestig <thestig@chromium.org> | 2016-05-12 21:56:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-12 21:56:43 -0700 |
commit | 594b20b485046c954b68734e63e8d2c93fbe4ef5 (patch) | |
tree | c20f6447c239d49848fea421fd497f23e41edbe3 /fpdfsdk/pdfwindow | |
parent | f6d9a61af218b7acc1161ae231b16765ca10b526 (diff) | |
download | pdfium-594b20b485046c954b68734e63e8d2c93fbe4ef5.tar.xz |
Fix some misc nits.
These were left over from after I broke a big "things that never return
NULL" CL up into smaller ones.
Review-Url: https://codereview.chromium.org/1960043003
Diffstat (limited to 'fpdfsdk/pdfwindow')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_EditCtrl.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp b/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp index 8a0dea1980..88046a2d86 100644 --- a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp +++ b/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp @@ -173,10 +173,8 @@ FX_BOOL CPWL_EditCtrl::OnKeyDown(uint16_t nChar, uint32_t nFlag) { break; } - if (nChar == FWL_VKEY_Delete) { - if (m_pEdit->IsSelected()) - nChar = FWL_VKEY_Unknown; - } + if (nChar == FWL_VKEY_Delete && m_pEdit->IsSelected()) + nChar = FWL_VKEY_Unknown; switch (nChar) { case FWL_VKEY_Delete: |