Fixes #10246: wxDataViewCtrl - first row does not react on return-key

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2008-12-16 22:02:40 +00:00
parent 5179bc0bca
commit 74a98b9938

View File

@@ -2805,7 +2805,7 @@ void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
{
case WXK_RETURN:
{
if (m_currentRow > 0)
if (m_currentRow >= 0)
{
wxWindow *parent = GetParent();
wxDataViewEvent le(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, parent->GetId());