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:
-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)
{