Changeset 2288

Show
Ignore:
Timestamp:
03/08/10 11:48:55 (5 months ago)
Author:
gm78
Message:

Closes #128. The code in the Points overlay that added a point to the list of selected points did not consider a NULL point, which is a valid case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FalconView/trunk/public/Applications/FalconView/localpnt/localpnt.cpp

    r1971 r2288  
    37403740void C_localpnt_ovl::add_current_selection(C_localpnt_point* point) 
    37413741{ 
    3742    ASSERT(point); 
    3743  
    3744    if (!m_selected_points.Find(point))  //if the point is not already in focus 
     3742   if (point != NULL && !m_selected_points.Find(point))  //if the point is not already in focus 
    37453743   { 
    37463744      m_selected_points.AddTail(point); 
     
    37503748    // Note: the following line is local point specific 
    37513749    if (m_selected_points.GetCount() == 1) 
    3752         m_EditDialogControl.SetFocus(point->m_id, point->m_group_name, get_specification()); 
     3750   { 
     3751      C_localpnt_point* pnt = m_selected_points.GetHead(); 
     3752        m_EditDialogControl.SetFocus(pnt->m_id, pnt->m_group_name, get_specification()); 
     3753   } 
    37533754    else 
    37543755        m_EditDialogControl.SetFocus(NULL); 
     
    37583759    if (m_selected_points.GetCount() == 1) 
    37593760      { 
    3760            set_link_edit_dlg_focus(point); 
     3761           set_link_edit_dlg_focus(m_selected_points.GetHead()); 
    37613762      } 
    37623763      else