From dad57df38ef86363da9bff2e62f3fddc5688f0cf Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 14 Dec 2016 14:58:06 -0800 Subject: [core] Fix symbol rendering for multipoints Ports https://github.com/mapbox/mapbox-gl-js/pull/3763 and https://github.com/mapbox/mapbox-gl-js/pull/3806. --- src/mbgl/text/get_anchors.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mbgl/text') diff --git a/src/mbgl/text/get_anchors.cpp b/src/mbgl/text/get_anchors.cpp index ce45e05d9c..b912c7763e 100644 --- a/src/mbgl/text/get_anchors.cpp +++ b/src/mbgl/text/get_anchors.cpp @@ -72,6 +72,7 @@ Anchors getAnchors(const GeometryCoordinates &line, float spacing, const float maxAngle, const float textLeft, const float textRight, const float iconLeft, const float iconRight, const float glyphSize, const float boxScale, const float overscaling) { + if (line.empty()) return {}; // Resample a line to get anchor points for labels and check that each // potential label passes text-max-angle check and has enough froom to fit -- cgit v1.2.1