src/glcompiler.cpp

changeset 1428
ece049033adc
parent 1427
b7ba2af33c13
child 1434
4c06435bd87f
--- 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();

mercurial