Reverted change of insertion point even when value is the same

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-10-10 08:16:40 +00:00
parent 4ac717880c
commit f9a8f4dbc5

View File

@@ -570,7 +570,6 @@ void wxTextCtrl::SetValue(const wxString& value)
if ( (value.length() > 0x400) || (value != GetValue()) ) if ( (value.length() > 0x400) || (value != GetValue()) )
{ {
DoWriteText(value, FALSE /* not selection only */); DoWriteText(value, FALSE /* not selection only */);
}
// we should reset the modified flag even if the value didn't really change // we should reset the modified flag even if the value didn't really change
@@ -580,6 +579,7 @@ void wxTextCtrl::SetValue(const wxString& value)
// for compatibility, don't move the cursor when doing SetValue() // for compatibility, don't move the cursor when doing SetValue()
SetInsertionPoint(0); SetInsertionPoint(0);
}
} }
#if wxUSE_RICHEDIT && (!wxUSE_UNICODE || wxUSE_UNICODE_MSLU) #if wxUSE_RICHEDIT && (!wxUSE_UNICODE || wxUSE_UNICODE_MSLU)