Changeset 6264918 in git


Ignore:
Timestamp:
15/01/14 10:56:49 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
a770b1bd
Parents:
6f0d0d8
Message:

src/mainfrm.cc,src/mainfrm.h: Fix wxWidgets assertion when double
clicking on an anonymous station. Reported by Kevin Dixon.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r6f0d0d8 r6264918  
     1Wed Jan 15 10:55:44 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/mainfrm.cc,src/mainfrm.h: Fix wxWidgets assertion when double
     4          clicking on an anonymous station.  Reported by Kevin Dixon.
     5
    16Wed Jan 15 07:11:30 GMT 2014  Olly Betts <olly@survex.com>
    27
  • src/mainfrm.cc

    r6f0d0d8 r6264918  
    15961596}
    15971597
    1598 void MainFrm::SelectTreeItem(LabelInfo* label)
    1599 {
    1600     m_Tree->SelectItem(label->tree_id);
    1601 }
    1602 
    16031598void MainFrm::CentreDataset(const Vector3 & vmin)
    16041599{
  • src/mainfrm.h

    r6f0d0d8 r6264918  
    474474    int GetDateMin() const { return m_DateMin; }
    475475
    476     void SelectTreeItem(LabelInfo* label);
     476    void SelectTreeItem(LabelInfo* label) {
     477        if (label->tree_id.IsOk())
     478            m_Tree->SelectItem(label->tree_id);
     479    }
    477480    void ClearTreeSelection();
    478481
Note: See TracChangeset for help on using the changeset viewer.