diff --git a/src/map/mapsforge/rastertile.cpp b/src/map/mapsforge/rastertile.cpp index 7bd86bb7..3f2e2bf1 100644 --- a/src/map/mapsforge/rastertile.cpp +++ b/src/map/mapsforge/rastertile.cpp @@ -98,8 +98,8 @@ void RasterTile::processLabels(const QList &points, for (int j = 0; j < labels.size(); j++) { const Style::TextRender *ri = labels.at(j); if (ri->rule().match(point.center(), point.tags)) { - const QByteArray *lbl; - if ((lbl = label(ri->key(), point.tags))) { + const QByteArray *lbl = label(ri->key(), point.tags); + if (lbl) { if (!si) { ti = ri; ll.append(lbl);