// recalculate the scrollbars parameters
if(m_rowsFirst >= rowCount)
m_rowsFirst = rowCount-1;
if(m_columnsFirst >= columnCount)
m_columnsFirst = columnCount-1;
// recalculate the scrollbars parameters
if(m_rowsFirst >= rowCount)
m_rowsFirst = rowCount-1;
if(m_columnsFirst >= columnCount)
m_columnsFirst = columnCount-1;