Routing marks invalidation fixed.

This commit is contained in:
Daria Volvenkova 2017-07-19 16:02:10 +03:00 committed by Roman Kuznetsov
parent 162f162427
commit 420995ab73
2 changed files with 5 additions and 2 deletions

View file

@ -761,7 +761,9 @@ void FrontendRenderer::AcceptMessage(ref_ptr<Message> message)
auto removePredicate = [](drape_ptr<RenderGroup> const & group)
{
RenderLayer::RenderLayerID id = RenderLayer::GetLayerID(group->GetState());
return id == RenderLayer::UserLineID || id == RenderLayer::UserMarkID;
return id == RenderLayer::UserLineID ||
id == RenderLayer::UserMarkID ||
id == RenderLayer::RoutingMarkID;
};
RemoveRenderGroupsLater(removePredicate);
m_forceUpdateUserMarks = true;

View file

@ -161,7 +161,8 @@ bool RenderGroup::IsOverlay() const
bool RenderGroup::IsUserMark() const
{
return m_state.GetDepthLayer() == dp::GLState::UserLineLayer ||
m_state.GetDepthLayer() == dp::GLState::UserMarkLayer;
m_state.GetDepthLayer() == dp::GLState::UserMarkLayer ||
m_state.GetDepthLayer() == dp::GLState::RoutingMarkLayer;
}
bool RenderGroup::UpdateCanBeDeletedStatus(bool canBeDeleted, int currentZoom, ref_ptr<dp::OverlayTree> tree)