From 09ac3bb6a148bfdd4cdc44c330eeddfed2564962 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Thu, 6 Sep 2018 12:28:57 +0300 Subject: [PATCH] Fixed arrows along oneway roads --- drape_frontend/stylist.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drape_frontend/stylist.cpp b/drape_frontend/stylist.cpp index a6af16ed49..09335301a7 100644 --- a/drape_frontend/stylist.cpp +++ b/drape_frontend/stylist.cpp @@ -125,8 +125,10 @@ private: m_auxCaptionFound |= (dRule->GetCaption(1) != nullptr); - // Skip lines with zero width. - if (dRule->GetLine() != nullptr && dRule->GetLine()->width() < 1e-5) + // Skip lines with zero width. Lines can have zero width only if they have + // path symbols along. + auto const lineRule = dRule->GetLine(); + if (lineRule != nullptr && (lineRule->width() < 1e-5 && !lineRule->has_pathsym())) return; m_rules.emplace_back(make_pair(dRule, depth));