From 594b20b485046c954b68734e63e8d2c93fbe4ef5 Mon Sep 17 00:00:00 2001 From: thestig Date: Thu, 12 May 2016 21:56:43 -0700 Subject: 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 --- fpdfsdk/pdfwindow/PWL_EditCtrl.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'fpdfsdk/pdfwindow') 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: -- cgit v1.2.3