]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/datavgen.cpp
no real change; just add the standard separator where it's missing
[wxWidgets.git] / src / generic / datavgen.cpp
index 73b8bbc92035f99b8c3454edc263b32b670c54a8..afe948e080c3b983d31a686f16ea4f15a3bb177c 100644 (file)
@@ -3414,11 +3414,10 @@ void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
     switch ( event.GetKeyCode() )
     {
         case WXK_RETURN:
-        {
-            if (m_currentRow >= 0)
             {
                 wxWindow *parent = GetParent();
-                wxDataViewEvent le(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED, parent->GetId());
+                wxDataViewEvent le(wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED,
+                                   parent->GetId());
                 le.SetItem( GetItemByRow(m_currentRow) );
                 le.SetEventObject(parent);
                 le.SetModel(GetOwner()->GetModel());
@@ -3426,7 +3425,7 @@ void wxDataViewMainWindow::OnChar( wxKeyEvent &event )
                 parent->GetEventHandler()->ProcessEvent(le);
             }
             break;
-        }
+
         case WXK_UP:
             if ( m_currentRow > 0 )
                 OnArrowChar( m_currentRow - 1, event );