diff --git a/src/textpathitem.cpp b/src/textpathitem.cpp index 0c27f20..5efc291 100644 --- a/src/textpathitem.cpp +++ b/src/textpathitem.cpp @@ -181,7 +181,7 @@ static QPainterPath textPath(const QPainterPath &path, qreal textWidth, for (int i = 0; i < lines.size(); i++) { const QPolygonF &pl = lines.at(i); - qreal angle, length = 0; + qreal angle = 0, length = 0; int last = 0; for (int j = 1; j < pl.size(); j ++) {