mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Added missing pbf layer version check
This commit is contained in:
parent
7532debc52
commit
d0e958501f
@ -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++)
|
||||||
|
Loading…
Reference in New Issue
Block a user