From a1e30192bcca153e270c33c313b02bc8a1712ca8 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Tue, 4 Aug 2015 22:29:59 +0100 Subject: [PATCH] Fixed GetSelectedItem subroutine for getting the selected data value. --- source/contacteditor/frmContactEditor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/contacteditor/frmContactEditor.cpp b/source/contacteditor/frmContactEditor.cpp index 0ce77e1..34711b0 100644 --- a/source/contacteditor/frmContactEditor.cpp +++ b/source/contacteditor/frmContactEditor.cpp @@ -6621,6 +6621,8 @@ bool frmContactEditor::GetSelectedItem(wxListCtrl *ListCtrlPtr, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED); + *intSelectedData = (int)ListCtrlPtr->GetItemData(*longSelected); + if (*longSelected == -1){ return FALSE; } -- 2.39.2