1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Fixed Qt5 build

This commit is contained in:
Martin Tůma 2024-11-10 19:52:24 +01:00
parent 7c1ed27781
commit 6493d10930

View File

@ -199,7 +199,7 @@ void RasterTile::processAreaLabels(const QVector<PainterPath> &paths,
const QColor *hColor = p.ti ? haloColor(p.ti) : 0; const QColor *hColor = p.ti ? haloColor(p.ti) : 0;
QPainterPath rp; QPainterPath rp;
rp.addRect(_rect.toRectF()); rp.addRect(_rect);
QPointF pos = p.p->path->labelPos.isNull() QPointF pos = p.p->path->labelPos.isNull()
? centroid(p.p->pp & rp) : ll2xy(p.p->path->labelPos); ? centroid(p.p->pp & rp) : ll2xy(p.p->path->labelPos);
if (p.ti && p.lbl && set.contains(*p.lbl)) if (p.ti && p.lbl && set.contains(*p.lbl))