From e8de8ae04fa8af10824ee4dda5a368abf51370c2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 4 Feb 2015 13:19:08 +0000 Subject: [PATCH] Remove unnecessary statement from wxX11 wxTextCtrl code. We don't care about size_x variable value and should probably get rid of it entirely, but for now at least don't update it unnecessarily. Closes #16834. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/x11/textctrl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/x11/textctrl.cpp b/src/x11/textctrl.cpp index 492d37e5df..5df5cc4e03 100644 --- a/src/x11/textctrl.cpp +++ b/src/x11/textctrl.cpp @@ -1790,7 +1790,6 @@ void wxTextCtrl::OnChar( wxKeyEvent &event ) int size_x = 0; int size_y = 0; GetClientSize( &size_x, &size_y ); - size_x /= m_charWidth; size_y /= m_lineHeight; size_y--;