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

Render symbols/labels for not rendered areas

This commit is contained in:
Martin Tůma 2021-07-27 21:53:24 +02:00
parent f042f11eed
commit 69cc6ccb75

View File

@ -146,7 +146,7 @@ void RasterTile::processAreaLabels(QList<TextItem*> &textItems)
const Style::TextRender *ti = 0;
const Style::Symbol *si = 0;
if (!path.closed || !path.path.elementCount())
if (!path.closed)
continue;
for (int j = 0; j < labels.size(); j++) {
@ -170,6 +170,9 @@ void RasterTile::processAreaLabels(QList<TextItem*> &textItems)
if (!ti && !si)
continue;
if (!path.path.elementCount())
path.path = painterPath(path.poly);
const QImage *img = si ? &si->img() : 0;
const QFont *font = ti ? &ti->font() : 0;
const QColor *color = ti ? &ti->fillColor() : 0;