This avoids accidentally resetting the selection if SetValue() is called again
with the same value.
Closes #13728.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72897
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
SelectAll();
WriteText(value);
SelectAll();
WriteText(value);
+
+ SetInsertionPoint(0);
}
else // Same value, no need to do anything.
{
}
else // Same value, no need to do anything.
{
if ( flags & SetValue_SendEvent )
SendTextUpdatedEvent(GetEditableWindow());
}
if ( flags & SetValue_SendEvent )
SendTextUpdatedEvent(GetEditableWindow());
}
-
- SetInsertionPoint(0);
}
void wxTextEntryBase::Replace(long from, long to, const wxString& value)
}
void wxTextEntryBase::Replace(long from, long to, const wxString& value)