mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 18:40:13 -06:00
Fix off-by-one error
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user