void frmContactEditorXToken::ProcessAction( wxCommandEvent& event )
{
+ // Process action.
+
long ListCtrlIndex;
if (EditorMode == FALSE){
striter = XTokenListTokensPtr->find(XTokenListIndex);
- if (striter->first == XTokenListIndex){
+ if (striter->first == XTokenListIndex &&
+ striter != XTokenListTokensPtr->end()){
strValue = striter->second;
striter = XTokenListPtr->find(XTokenListIndex);
- if (striter->first == XTokenListIndex){
+ if (striter->first == XTokenListIndex &&
+ striter != XTokenListPtr->end()){
strValue = striter->second;
int XTokenIndex )
{
+ // Setup the pointers.
+
XTokenListPtr = XTokenList;
XTokenListTokensPtr = XTokenListTokens;
XTokenListCtrlPtr = XTokenListCtrl;
void frmContactEditorXToken::CloseWindow( wxCommandEvent& event )
{
+
+ // Close the window.
+
this->Close();
}