From: <da...@us...> - 2007-10-26 12:04:16
|
Revision: 2497 http://hugin.svn.sourceforge.net/hugin/?rev=2497&view=rev Author: dangelo Date: 2007-10-26 05:04:13 -0700 (Fri, 26 Oct 2007) Log Message: ----------- Fixed crash on startup due to sorting an empty wxListCtrl Modified Paths: -------------- hugin/trunk/src/hugin1/hugin/CPListFrame.cpp Modified: hugin/trunk/src/hugin1/hugin/CPListFrame.cpp =================================================================== --- hugin/trunk/src/hugin1/hugin/CPListFrame.cpp 2007-10-26 11:46:25 UTC (rev 2496) +++ hugin/trunk/src/hugin1/hugin/CPListFrame.cpp 2007-10-26 12:04:13 UTC (rev 2497) @@ -475,6 +475,9 @@ void CPListFrame::SortList() { + // nothing to sort + if (m_list->GetItemCount() == 0) return; + int colNumber = 0; int colLeftImg = 1; int colRightImg = 4; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |