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
This commit is contained in:
Vadim Zeitlin
2015-02-04 13:19:08 +00:00
parent 96d7b1d397
commit e8de8ae04f

View File

@@ -1790,7 +1790,6 @@ void wxTextCtrl::OnChar( wxKeyEvent &event )
int size_x = 0; int size_x = 0;
int size_y = 0; int size_y = 0;
GetClientSize( &size_x, &size_y ); GetClientSize( &size_x, &size_y );
size_x /= m_charWidth;
size_y /= m_lineHeight; size_y /= m_lineHeight;
size_y--; size_y--;