Fixed renaming of bookmark category file.

This commit is contained in:
Daria Volvenkova 2018-02-15 18:46:55 +03:00 committed by Roman Kuznetsov
parent b2ef40a882
commit e926af2a7a

View file

@ -1123,7 +1123,7 @@ bool BookmarkManager::SaveToKMLFile(df::MarkGroupID groupId)
++i1;
// If m_file doesn't match name, assign new m_file for this category and save old file name.
if (file.substr(i1, i2 - i1).find(name) != 0)
if (file.substr(i1, i2 - i1) != name)
{
file.swap(oldFile);
}