Commit c2e9564e authored by Jan Möbius's avatar Jan Möbius

Possible endless loop



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17139 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 58c39176
......@@ -93,9 +93,9 @@ void PropertyModel::removeProperty(QModelIndexList selectedIndices)
std::sort(deleteIndices.begin(), deleteIndices.end());
for (size_t i = deleteIndices.size()-1; i >= 0; i--)
for (int i = deleteIndices.size()-1; i >= 0; i--)
{
for (size_t j = currentlyVisualizedIndices.size()-1; j >= 0; j--)
for (int j = currentlyVisualizedIndices.size()-1; j >= 0; j--)
{
if (currentlyVisualizedIndices[j] == deleteIndices[i])
//erase so the deleted property will not be revisualized on updateObject
......@@ -107,7 +107,7 @@ void PropertyModel::removeProperty(QModelIndexList selectedIndices)
}
}
for (size_t i = deleteIndices.size()-1; i >= 0; i--){
for (int i = deleteIndices.size()-1; i >= 0; i--){
propertyVisualizers.erase(propertyVisualizers.begin() + deleteIndices[i]);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment