From 6757278ec8e704f22fe3229ac1daf88eaede0df6 Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Thu, 23 Nov 2023 20:12:16 +0200 Subject: [PATCH] [drape] Ensure dashdot values are >=1 AFTER applying vs Signed-off-by: Konstantin Pastbin --- drape_frontend/apply_feature_functors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drape_frontend/apply_feature_functors.cpp b/drape_frontend/apply_feature_functors.cpp index b7891b28a9..fdffa49150 100644 --- a/drape_frontend/apply_feature_functors.cpp +++ b/drape_frontend/apply_feature_functors.cpp @@ -130,7 +130,7 @@ void ExtractLineParams(LineRuleProto const & lineRule, LineViewParams & params) int const count = dd.dd_size(); params.m_pattern.reserve(count); for (int i = 0; i < count; ++i) - params.m_pattern.push_back(dp::PatternFloat2Pixel(dd.dd(i) * scale)); + params.m_pattern.push_back(dp::PatternFloat2Pixel(std::max(dd.dd(i) * scale, 1.0))); } switch (lineRule.cap())