diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index ee37a90226..99763c1787 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -2433,7 +2433,7 @@ void wxDataViewMainWindow::ScrollTo( int rows, int column ) int x, y; m_owner->GetScrollPixelsPerUnit( &x, &y ); int sy = GetLineStart( rows )/y; - int sx = 0; + int sx = -1; if( column != -1 ) { wxRect rect = GetClientRect();