diff --git a/checkin_notes b/checkin_notes index 381e4fe311..969115a41f 100755 --- a/checkin_notes +++ b/checkin_notes @@ -3295,3 +3295,11 @@ Rom 26 Mar 2006 clientgui/ BOINCGUIApp.cpp MainDocument.cpp, .h + +Rom 27 Mar 2006 + - Bug Fix: When choosing a default value for something, use a value that + connot be confused with valid data otherwise you might overwrite valid + default values setup during object creation. + + clientgui/ + BOINCListCtrl.cpp diff --git a/clientgui/BOINCListCtrl.cpp b/clientgui/BOINCListCtrl.cpp index 5cdded370a..d47956c6d8 100644 --- a/clientgui/BOINCListCtrl.cpp +++ b/clientgui/BOINCListCtrl.cpp @@ -122,11 +122,15 @@ bool CBOINCListCtrl::OnRestoreState(wxConfigBase* pConfig) { pConfig->SetPath(strBaseConfigLocation + liColumnInfo.GetText()); - pConfig->Read(wxT("Width"), &iTempValue, 80); - liColumnInfo.SetWidth(iTempValue); + pConfig->Read(wxT("Width"), &iTempValue, -1); + if (-1 != iTempValue) { + liColumnInfo.SetWidth(iTempValue); + } - pConfig->Read(wxT("Format"), &iTempValue, 0); - liColumnInfo.SetAlign((wxListColumnFormat)iTempValue); + pConfig->Read(wxT("Format"), &iTempValue, -1); + if (-1 != iTempValue) { + liColumnInfo.SetAlign((wxListColumnFormat)iTempValue); + } SetColumn(iIndex, liColumnInfo); }