void wxTextEntryBase::DoSetValue(const wxString& value, int flags)
{
- if ( value != GetValue() )
+ if ( value != DoGetValue() )
{
EventsSuppressor noeventsIf(this, !(flags & SetValue_SendEvent));
SelectAll();
WriteText(value);
+
+ SetInsertionPoint(0);
}
else // Same value, no need to do anything.
{
if ( flags & SetValue_SendEvent )
SendTextUpdatedEvent(GetEditableWindow());
}
-
- SetInsertionPoint(0);
}
void wxTextEntryBase::Replace(long from, long to, const wxString& value)