1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Do not limit text that was not inserted

This commit is contained in:
Martin Tůma 2023-06-06 07:32:42 +02:00
parent 88fa1ed786
commit 5ddd63e697

View File

@ -266,11 +266,9 @@ void RasterTile::processLineLabels(const QVector<PainterPath> &paths,
if (img && lbl) {
PathItem *item = new PathItem(path.pp, 0, img, _rect, 0, 0, 0,
rotate);
if (item->isValid() && !item->collides(textItems)) {
if (item->isValid() && !item->collides(textItems))
textItems.append(item);
if (limit)
set.insert(*lbl);
} else
else
delete item;
}
}