diff --git a/src/main/main_window.cpp b/src/main/main_window.cpp index 159e3f9f..5ee588b0 100644 --- a/src/main/main_window.cpp +++ b/src/main/main_window.cpp @@ -1721,7 +1721,7 @@ QPair, BufferRowIndex> MainWindow::getSelectedRows(const It for (const QModelIndex& modelIndex : selectedModelIndices) { const ViewRowIndex viewRowIndex = ViewRowIndex(modelIndex.row()); const BufferRowIndex bufferRowIndex = mapper.compTable->getBufferRowIndexForViewRow(viewRowIndex); - assert(bufferRowIndex.isValid(mapper.compTable->rowCount())); + assert(bufferRowIndex.isValid(mapper.baseTable.getNumberOfRows())); selected.insert(bufferRowIndex); }