Fixed CustomDashLine drawing bug.
authorSamuel Rødal <samuel.rodal@nokia.com>
Mon, 6 Feb 2012 17:19:46 +0000 (18:19 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 8 Feb 2012 15:42:20 +0000 (16:42 +0100)
commit547a1f53050b887bacb766ea95381cde072a6d3e
treeff77ed25a9411f7b7fe1b6a888269547891c6be5
parentc95a95306190bff15138b013dde33d98eab34d8d
Fixed CustomDashLine drawing bug.

The bug was caused by attempting to stroke an empty subpath. If there
have been no line-to's emitted we should not try to join the start and
end of that line segment.

Task-number: QTBUG-23248
Change-Id: I38b7e955ed6683f8fc25f9551e93b4f472c022bf
Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
(cherry picked from commit 593947ba70188df3d33efe031fab2fd255faa8b9)
src/gui/painting/qstroker.cpp