]> git.saurik.com Git - wxWidgets.git/commit
Prevent pasting too much text into limited length wxTextCtrl in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Oct 2012 23:26:32 +0000 (23:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 25 Oct 2012 23:26:32 +0000 (23:26 +0000)
commit656b9f44671d3f17ad6ea964f95a7468f7e66cdc
treee84f5c650525b75bf8574dfb6d7e53651a85d84a
parent58263bb4c371f36d114fb366df9197cf8ec07c4c
Prevent pasting too much text into limited length wxTextCtrl in wxGTK.

Improve insert-text signal handler to block pasting text into the control,
which may overflow the specified max length in one action, and not only
entering individual characters.

See #3158.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/textentry.cpp