From 7853e37a0bca9bd801f29148fb082e66e5d0420d Mon Sep 17 00:00:00 2001 From: Darafei Praliaskouski Date: Thu, 24 Jan 2013 20:32:31 +0300 Subject: [PATCH] added comment about delete --- map/feature_styler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/map/feature_styler.cpp b/map/feature_styler.cpp index 8f0baaaa9f..3725a18437 100644 --- a/map/feature_styler.cpp +++ b/map/feature_styler.cpp @@ -146,12 +146,14 @@ namespace feature } if (hasIcon && hasCaptionWithoutOffset) + // we need to delete symbol style (single one due to MakeUnique call above) for (size_t i = 0; i < count; ++i) { if (keys[i].m_type == drule::symbol) { m_rules[i] = m_rules[m_rules.size() - 1]; m_rules.pop_back(); + break; } }