From a50d7a331bccd5ef35f08d8d0e24a0348510eb5a Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 6 Apr 2017 09:20:07 -0700 Subject: [core] Replace GlyphRangeSet in onGlyphsAvailable with optionals in the map GlyphRangeSet isn't keyed by FontStack, so using it to indicate that a particular range was loaded could have produced false positives. --- src/mbgl/tile/geometry_tile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mbgl/tile/geometry_tile.cpp') diff --git a/src/mbgl/tile/geometry_tile.cpp b/src/mbgl/tile/geometry_tile.cpp index 4e67144082..36ac4155d7 100644 --- a/src/mbgl/tile/geometry_tile.cpp +++ b/src/mbgl/tile/geometry_tile.cpp @@ -133,8 +133,8 @@ void GeometryTile::onError(std::exception_ptr err) { observer->onTileError(*this, err); } -void GeometryTile::onGlyphsAvailable(GlyphPositionMap glyphPositions, GlyphRangeSet loadedRanges) { - worker.invoke(&GeometryTileWorker::onGlyphsAvailable, std::move(glyphPositions), std::move(loadedRanges)); +void GeometryTile::onGlyphsAvailable(GlyphPositionMap glyphPositions) { + worker.invoke(&GeometryTileWorker::onGlyphsAvailable, std::move(glyphPositions)); } void GeometryTile::getGlyphs(GlyphDependencies glyphDependencies) { -- cgit v1.2.1