diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index 4e15c71aee..95ef21a99b 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -4359,6 +4359,13 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event ) unsigned int lineFrom = oldCurrentRow, lineTo = current; + if ( lineFrom == static_cast(-1) ) + { + // If we hadn't had any current row before, treat this as a + // simple click and select the new row only. + lineFrom = current; + } + if ( lineTo < lineFrom ) { lineTo = lineFrom;