Fixed: Filtered user landmarks became visible when landmark was edited/removed.

--HG--
branch : develop
This commit is contained in:
Nimetu 2018-05-13 17:00:45 +03:00
parent 4cca062177
commit a62c8eefd4

View file

@ -2574,6 +2574,10 @@ void CGroupMap::updateUserLandMarks()
worldToMap(mapPos, _CurContinent->UserLandMarks[k].Pos); worldToMap(mapPos, _CurContinent->UserLandMarks[k].Pos);
addLandMark(_UserLM, mapPos, _CurContinent->UserLandMarks[k].Title, getUserLandMarkOptions(k)); addLandMark(_UserLM, mapPos, _CurContinent->UserLandMarks[k].Title, getUserLandMarkOptions(k));
// hide landmark if not matching filter
if (!filterLandmark(_CurContinent->UserLandMarks[k].Title))
_UserLM.back()->setActive(false);
} }
invalidateCoords(); invalidateCoords();