mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01:00
Added missing painter save/restore
This commit is contained in:
parent
03fbf4643d
commit
0c4624d28e
@ -163,9 +163,11 @@ static void drawLayer(const Layer &layer, Style *style, int styleLayer,
|
||||
QSizeF factor(tile.size().width() / (qreal)layer.data()->extent(),
|
||||
tile.size().height() / (qreal)layer.data()->extent());
|
||||
|
||||
tile.painter().save();
|
||||
style->setPainter(styleLayer, tile);
|
||||
for (int i = 0; i < layer.features().size(); i++)
|
||||
processFeature(layer.features().at(i), style, styleLayer, factor, tile);
|
||||
tile.painter().restore();
|
||||
}
|
||||
|
||||
bool PBF::render(const QByteArray &data, int zoom, Style *style, qreal scale,
|
||||
|
Loading…
Reference in New Issue
Block a user