1. undid my wrong fix to wxWindowBase::Centre
2. corrected fatal bug in wxCheckLstBox (double deletion of items) 3. wxTextCtrl::SetValue() only does it if the new text is different from the old one 4. wxBitmap(const wxIcon&) ctor added 5. compilation fixes for VC++ and generic Win32 implementation of wxGetCurrentTime() in timercmn.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -296,9 +296,12 @@ void wxTextCtrl::SetValue(const wxString& value)
|
||||
{
|
||||
wxString valueDos = wxTextFile::Translate(value, wxTextFileType_Dos);
|
||||
|
||||
SetWindowText(GetHwnd(), valueDos);
|
||||
if ( valueDos != GetValue() )
|
||||
{
|
||||
SetWindowText(GetHwnd(), valueDos);
|
||||
|
||||
AdjustSpaceLimit();
|
||||
AdjustSpaceLimit();
|
||||
}
|
||||
}
|
||||
|
||||
void wxTextCtrl::WriteText(const wxString& value)
|
||||
|
Reference in New Issue
Block a user