]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/textentrycmn.cpp
add support for alpha in color dialog on OSX, see #14127
[wxWidgets.git] / src / common / textentrycmn.cpp
index 3e5c6117e07d68eb736508b14cc743decc9d2cdf..2ca2077467d17cc4bb96343d85e58d465f3496a2 100644 (file)
@@ -230,6 +230,8 @@ void wxTextEntryBase::DoSetValue(const wxString& value, int flags)
 
         SelectAll();
         WriteText(value);
+
+        SetInsertionPoint(0);
     }
     else // Same value, no need to do anything.
     {
@@ -238,8 +240,6 @@ void wxTextEntryBase::DoSetValue(const wxString& value, int flags)
         if ( flags & SetValue_SendEvent )
             SendTextUpdatedEvent(GetEditableWindow());
     }
-
-    SetInsertionPoint(0);
 }
 
 void wxTextEntryBase::Replace(long from, long to, const wxString& value)