Permalink
Browse files

Fix bug, caused by test against wrong vector.end()

  • Loading branch information...
1 parent 914c0d3 commit e9f801cd320bf84af17ee0f4e59850ad4b94235b unknown committed Jul 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/qtgui/mainwindow.cpp
View
@@ -2070,7 +2070,7 @@ bool MainWindow::on_tabBar_tabCloseRequested(int index) {
/* look for shape in this context */
shapeListType::const_iterator findIt = std::find(testShapes.begin(), testShapes.end(), *it);
/* if found, don't delete it from material manager */
- if (findIt != shapes.end())
+ if (findIt != testShapes.end())
removalCandidates[*it] = false;
}
}

0 comments on commit e9f801c

Please sign in to comment.