--- a/src/glcompiler.cpp Fri Jul 13 20:48:55 2018 +0300 +++ b/src/glcompiler.cpp Sat Aug 04 21:46:58 2018 +0300 @@ -571,8 +571,10 @@ void GLCompiler::handleRowRemoval(const QModelIndex&, int first, int last) { - for (int row = last; row >= first; row -= 1) - forgetObject(m_renderer->model()->index(row)); + for (int row = last; row >= first; row -= 1) { + auto index = m_renderer->model()->index(row); + forgetObject(index); + } this->needBoundingBoxRebuild = true; emit sceneChanged();