Manager: Fix crash bug in wxPieCtrl.

svn path=/trunk/boinc/; revision=12719
This commit is contained in:
Charlie Fenton 2007-05-23 03:04:32 +00:00
parent 8c1b75bf8a
commit 4f7daa6e1e
2 changed files with 5 additions and 0 deletions

View File

@ -5189,11 +5189,14 @@ David 22 May 2007
graphics2_win.C
Charlie 22 May 2007
- Manager: Fix crash bug in wxPieCtrl.
- Mac: Add list control sources back into XCode Project
(ViewTransfers.cpp,.h, ViewWork.cpp,.h,ViewProjects.cpp,.h)
- Mac: Revert XCode project, build scripts and build instructions to use
wxMac-2.6.3 as a temporary workaround to SimpleGUI drawing bug.
clientgui/
wxPieCtrl.cpp
mac_build/
buildWxMac.sh
HowToBuildBOINC_XCode.rtf

View File

@ -176,6 +176,8 @@ void wxPieCtrl::GetPartAngles(wxArrayDouble & angles)
{
total += m_Series[i].GetValue();
}
if (total == 0.0)
return;
double current(0);
angles.Add(current);
for(i = 0; i < m_Series.Count(); i++)