From de870ee5b4736f5fb783469071c8939ad8991fab Mon Sep 17 00:00:00 2001 From: Simon Vetter Date: Thu, 14 Mar 2024 13:44:02 +0000 Subject: [PATCH] Fix: Failed assertion when opening ascent with active filter --- src/main/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }