Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaria Volvenkova <d.volvenkova@corp.mail.ru>2020-02-25 19:14:46 +0300
committerAleksandr Zatsepin <alexzatsepin@users.noreply.github.com>2020-02-27 13:42:34 +0300
commit62a887ae7f5947a3fb0606c0a0da0826fcd5fd12 (patch)
treea8c02b0b0b625a46026bb0dd23d5374258313477 /drape_frontend/user_mark_shapes.cpp
parentb9223592b185b66f63739d39077e6bacc4eb033a (diff)
[bookmarks] Fixed crash after track simplification.
Diffstat (limited to 'drape_frontend/user_mark_shapes.cpp')
-rw-r--r--drape_frontend/user_mark_shapes.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp
index 45e795df17..1438a9b542 100644
--- a/drape_frontend/user_mark_shapes.cpp
+++ b/drape_frontend/user_mark_shapes.cpp
@@ -568,6 +568,9 @@ void CacheUserLines(ref_ptr<dp::GraphicsContext> context, TileKey const & tileKe
if (simplify)
spline = SimplifySpline(renderInfo, sqrScale);
+ if (spline->GetSize() < 2)
+ continue;
+
auto const clippedSplines = m2::ClipSplineByRect(tileRect, spline);
for (auto const & clippedSpline : clippedSplines)
{