Fix off-by-one error

This commit is contained in:
Martin Kleusberg
2019-06-13 16:12:47 +02:00
parent 50c1f46bdb
commit ccae4af6d1

View File

@@ -308,7 +308,7 @@ static long calc_number_of_objects_by_type(const objectMap& objmap, const std::s
if(objects.first == objmap.end())
return 0;
else
return std::distance(objects.first, objects.second) + 1;
return std::distance(objects.first, objects.second);
}
void DbStructureModel::buildTree(QTreeWidgetItem* parent, const std::string& schema)