Fix a bug. (Thanks to Ged).

svn path=/trunk/; revision=26329
This commit is contained in:
Dmitry Gorbachev 2007-04-13 14:47:55 +00:00
parent 7f235d3886
commit abe25cf75b
2 changed files with 6 additions and 2 deletions

View file

@ -262,8 +262,11 @@ DlgProc(HWND hDlg,
ch = SendMessage(hMap, FM_GETCHAR, 0, 0);
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
ch);
if (ch)
{
AddCharToSelection(GetDlgItem(hDlg, IDC_TEXTBOX),
ch);
}
break;
}

View file

@ -492,6 +492,7 @@ MapWndProc(HWND hwnd,
case FM_GETCHAR:
{
if (!infoPtr->pActiveCell) return NULL;
return infoPtr->pActiveCell->ch;
}