forked from organicmaps/organicmaps
Save sorted feature types in a bookmark data.
This commit is contained in:
parent
1274915d50
commit
b8c270211a
1 changed files with 3 additions and 1 deletions
|
@ -124,7 +124,9 @@ void ResetIds(kml::FileData & kmlData)
|
|||
|
||||
void SaveFeatureTypes(feature::TypesHolder const & types, kml::BookmarkData & bmData)
|
||||
{
|
||||
bmData.m_featureTypes.assign(types.begin(), types.end());
|
||||
feature::TypesHolder copy(types);
|
||||
copy.SortBySpec();
|
||||
bmData.m_featureTypes.assign(copy.begin(), copy.end());
|
||||
}
|
||||
|
||||
std::string GetPreferredBookmarkStr(kml::LocalizableString const & name)
|
||||
|
|
Loading…
Add table
Reference in a new issue