*** empty log message ***

svn path=/trunk/boinc/; revision=9735
This commit is contained in:
Rom Walton 2006-03-27 21:11:09 +00:00
parent 6d0c553aed
commit d79290984d
2 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -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);
}