mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-03-13 18:47: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 {
|
} else {
|
||||||
if (style.brush() != Qt::NoBrush) {
|
if (style.brush() != Qt::NoBrush) {
|
||||||
painter->setPen(Qt::NoPen);
|
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->setBrush(style.brush());
|
||||||
painter->drawPath(painterPath(poly.path()));
|
painter->drawPath(path);
|
||||||
}
|
}
|
||||||
if (style.pen() != Qt::NoPen) {
|
if (style.pen() != Qt::NoPen) {
|
||||||
painter->setPen(style.pen());
|
painter->setPen(style.pen());
|
||||||
@ -413,7 +418,7 @@ QList<RasterTile::Level> RasterTile::fetchLevels()
|
|||||||
if (!level.isNull())
|
if (!level.isNull())
|
||||||
list.append(level);
|
list.append(level);
|
||||||
|
|
||||||
if (shape(level.polygons).contains(_rect))
|
if (_data.size() > 0 && shape(level.polygons).contains(_rect))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user