Debug cursor

Also an error when the slide cursor was on max:
ASSERT failure in QVector<T>::operator[]: "index out of range", file /opt/local/include/QtCore/qvector.h, line 343
Abort trap: 6