]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/griddemo.cpp
Correct activate logic for <ENTER>
[wxWidgets.git] / samples / grid / griddemo.cpp
index 4ad34e9774fd33fd3725efa33319163f196b2f2e..abdcfee872e40aa43b6628f686a9bd75a1a97994 100644 (file)
@@ -961,8 +961,8 @@ void GridFrame::OnShowSelection(wxCommandEvent& WXUNUSED(event))
                     single = _T("column");
                 }
 
-                const wxArrayInt sels(rows ? grid->GetSelectedRows()
-                                           : grid->GetSelectedCols());
+                const wxArrayInt sels((const wxArrayInt)(rows ? grid->GetSelectedRows()
+                                           : grid->GetSelectedCols()));
                 size_t count = sels.size();
                 wxLogMessage(_T("%lu %s selected:"),
                              (unsigned long)count, plural);