diff --git a/src/map/IMG/textpathitem.cpp b/src/map/IMG/textpathitem.cpp index 24485d5e..504b45dd 100644 --- a/src/map/IMG/textpathitem.cpp +++ b/src/map/IMG/textpathitem.cpp @@ -100,6 +100,8 @@ static QPainterPath textPath(const QPolygonF &path, qreal textWidth, qreal charWidth, const QRectF &tileRect) { QList lines(lineString(path, tileRect)); + if (lines.isEmpty()) + return QPainterPath(); qreal length = 0; qreal angle = lines.first().angle(); int last = 0;