diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-09-10 10:26:37 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-09-10 11:45:15 (GMT) |
commit | 914cebd0c8db1a09ca3d2809a08369b2206f76dd (patch) | |
tree | 199d546eb6910e6519b9f9d8f330b0bb7b47ce6c /src/gui | |
parent | e6efbad527e2b83ee8f4bb5e9fdbed9177ccd3a1 (diff) | |
download | Qt-914cebd0c8db1a09ca3d2809a08369b2206f76dd.zip Qt-914cebd0c8db1a09ca3d2809a08369b2206f76dd.tar.gz Qt-914cebd0c8db1a09ca3d2809a08369b2206f76dd.tar.bz2 |
Fixed crash in raster paint engine.
If m_element_types is empty then we should create a QVectorPath without
element types as well.
Reviewed-by: Gunnar
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/painting/qoutlinemapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qoutlinemapper.cpp b/src/gui/painting/qoutlinemapper.cpp index 6579cf6..ee33024 100644 --- a/src/gui/painting/qoutlinemapper.cpp +++ b/src/gui/painting/qoutlinemapper.cpp @@ -198,7 +198,7 @@ void QOutlineMapper::endOutline() m_m22 * e.y() + m_m12 * e.x() + m_dy); } } else { - const QVectorPath vp((qreal *)m_elements.data(), m_elements.size(), m_element_types.data()); + const QVectorPath vp((qreal *)m_elements.data(), m_elements.size(), m_element_types.size() ? m_element_types.data() : 0); QPainterPath path = vp.convertToPainterPath(); path = QTransform(m_m11, m_m12, m_m13, m_m21, m_m22, m_m23, m_dx, m_dy, m_m33).map(path); if (!(m_outline.flags & QT_FT_OUTLINE_EVEN_ODD_FILL)) |