Don't crash if QQuickPath has less than 4 elements
authorShawn Rutledge <shawn.rutledge@digia.com>
Mon, 29 Apr 2013 11:51:15 +0000 (13:51 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 30 Apr 2013 06:01:16 +0000 (08:01 +0200)
commita7cb4acd5077539f78afb7fd53a6ff4231b3d63f
treef4eb63574e956c27858862b7c683d6fabe0cbe14
parent51665a9ecaebaef2382c1e76ebedfeffacb4b3de
Don't crash if QQuickPath has less than 4 elements

When running the Qt Cinematic demo on Android, the assertion
ASSERT: "i >= 0 && i < elementCount()" in painting/qpainterpath.cpp
failed because of a zero default size at startup.

Change-Id: I2c46c43319cf71030cf03b1f7c6cdaec782ce11a
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/quick/util/qquickpath.cpp