X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e567904ae6f502226659fac12f22b6a18beb2179..8383e673b1d839548b7336947a61fa699eeb6621:/src/osx/textentry_osx.cpp diff --git a/src/osx/textentry_osx.cpp b/src/osx/textentry_osx.cpp index 2d9d79a0e2..5f51fca1b7 100644 --- a/src/osx/textentry_osx.cpp +++ b/src/osx/textentry_osx.cpp @@ -4,7 +4,7 @@ // Author: Stefan Csomor // Modified by: Kevin Ollivier // Created: 1998-01-01 -// RCS-ID: $Id: textctrl.cpp 54820 2008-07-29 20:04:11Z SC $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -147,7 +147,10 @@ wxTextPos wxTextEntry::GetLastPosition() const void wxTextEntry::Remove(long from, long to) { - GetTextPeer()->Remove( from , to ) ; + { + EventsSuppressor noevents(this); + GetTextPeer()->Remove( from , to ); + } SendTextUpdatedEventIfAllowed(); } @@ -159,14 +162,20 @@ void wxTextEntry::SetSelection(long from, long to) void wxTextEntry::WriteText(const wxString& str) { - GetTextPeer()->WriteText( str ) ; + { + EventsSuppressor noevents(this); + GetTextPeer()->WriteText( str ); + } SendTextUpdatedEventIfAllowed(); } void wxTextEntry::Clear() { - GetTextPeer()->Clear() ; + { + EventsSuppressor noevents(this); + GetTextPeer()->Clear(); + } SendTextUpdatedEventIfAllowed(); }