mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-03-13 10:37:45 +01:00
Levels overlay fixes/tweaks
This commit is contained in:
parent
d91acb66f2
commit
db6e891c30
@ -169,8 +169,13 @@ void RasterTile::drawPolygons(QPainter *painter,
|
||||
} else {
|
||||
if (style.brush() != Qt::NoBrush) {
|
||||
painter->setPen(Qt::NoPen);
|
||||
QPainterPath path(painterPath(poly.path()));
|
||||
if (poly.type() == TYPE(DRGARE)) {
|
||||
painter->setBrush(Qt::white);
|
||||
painter->drawPath(path);
|
||||
}
|
||||
painter->setBrush(style.brush());
|
||||
painter->drawPath(painterPath(poly.path()));
|
||||
painter->drawPath(path);
|
||||
}
|
||||
if (style.pen() != Qt::NoPen) {
|
||||
painter->setPen(style.pen());
|
||||
@ -413,7 +418,7 @@ QList<RasterTile::Level> RasterTile::fetchLevels()
|
||||
if (!level.isNull())
|
||||
list.append(level);
|
||||
|
||||
if (shape(level.polygons).contains(_rect))
|
||||
if (_data.size() > 0 && shape(level.polygons).contains(_rect))
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user