From e2d8171a4780e034c736ec7a9aee31ef30bd6b49 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 13 Mar 2008 23:12:40 +0000 Subject: [PATCH] MGR: Fix a crash bug (I hope). svn path=/trunk/boinc/; revision=14907 --- checkin_notes | 6 ++++++ clientgui/BOINCGridCtrl.cpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/checkin_notes b/checkin_notes index 876e9e68cf..fa22d8feb5 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2334,3 +2334,9 @@ David Mar 13 2008 server_types.h tools/ update_versions + +Charlie Mar 13 2008 + MGR: Hopefully fix a crash bug. + + clientgui/ + BOINCGridCtrl.cpp diff --git a/clientgui/BOINCGridCtrl.cpp b/clientgui/BOINCGridCtrl.cpp index fde4445b81..0e597c62e4 100644 --- a/clientgui/BOINCGridCtrl.cpp +++ b/clientgui/BOINCGridCtrl.cpp @@ -215,6 +215,8 @@ void CBOINCGridCtrl::SaveSelection() { m_arrSelectedKeys1.Add(GetCellValue(arrSelRows[i],m_pkColumnIndex1)); if (m_pkColumnIndex2 >= 0) { m_arrSelectedKeys2.Add(GetCellValue(arrSelRows[i],m_pkColumnIndex2)); + } else { + m_arrSelectedKeys2.Add(wxEmptyString); } } }