create a copy

This commit is contained in:
Konstantin Käfer
2014-05-28 22:18:18 +02:00
parent 6f68cd3676
commit 83b3b0bb6a

View File

@@ -205,7 +205,8 @@ std::unique_ptr<Bucket> TileParser::createTextBucket(const VectorTileLayer& laye
glyphStore.waitForGlyphRanges(bucket_desc.geometry.font, ranges);
}
const FontStack &fontStack = glyphStore.getFontStack(bucket_desc.geometry.font);
// Create a copy!
const FontStack fontStack = glyphStore.getFontStack(bucket_desc.geometry.font);
// Shape and place all labels.
{