Added missing pbf layer version check

This commit is contained in:
Martin Tůma 2018-10-31 00:05:08 +01:00
parent 7532debc52
commit d0e958501f

View File

@ -121,6 +121,9 @@ static void feature(const Feature &feature, Style *style, int styleLayer,
static void layer(const Layer &layer, Style *style, int styleLayer, Tile &tile) static void layer(const Layer &layer, Style *style, int styleLayer, Tile &tile)
{ {
if (layer.data->version() != 2)
return;
qreal factor = layer.data->extent() / (qreal)tile.size(); qreal factor = layer.data->extent() / (qreal)tile.size();
for (int i = 0; i < layer.data->features_size(); i++) for (int i = 0; i < layer.data->features_size(); i++)