Fix assert when calculating the implicit width of truncated lines.
authorAndrew den Exter <andrew.den.exter@jollamobile.com>
Fri, 31 May 2013 02:13:40 +0000 (12:13 +1000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 31 May 2013 07:56:42 +0000 (09:56 +0200)
commite171d1e8c4b4324374cb57a6d7d181a57fc17dbe
treec003e6bc4326aa77262f8aae8edc6ee9373d949e
parent9f9330c524092e63cf5b490d193fd9172938526f
Fix assert when calculating the implicit width of truncated lines.

Guard against reading past the end of the final line.

Task-number: QTBUG-31471

Change-Id: I489f742936ee16f12ad9762b7c0891bfa9377e21
Reviewed-by: Martin Jones <martin.jones@jollamobile.com>
src/quick/items/qquicktext.cpp
tests/auto/quick/qquicktext/data/elideBeforeMaximumLineCount.qml [new file with mode: 0644]
tests/auto/quick/qquicktext/tst_qquicktext.cpp