diff options
author | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-08-27 14:40:25 (GMT) |
---|---|---|
committer | Kim Motoyoshi Kalland <kim.kalland@nokia.com> | 2009-08-27 14:54:50 (GMT) |
commit | d0cdddb61c46a5d27fe0e4fae176964c2009e971 (patch) | |
tree | 958255bdf580ca8107669026985ff11e165b010c /src | |
parent | de1f8b826fafccd9a528a000cf99d6a1f553855b (diff) | |
download | Qt-d0cdddb61c46a5d27fe0e4fae176964c2009e971.zip Qt-d0cdddb61c46a5d27fe0e4fae176964c2009e971.tar.gz Qt-d0cdddb61c46a5d27fe0e4fae176964c2009e971.tar.bz2 |
Fixed path filling in the GL2 paint engine.
The bounding box was not updated for moveTo-commands except the first
one. Therefore, the calculated bounding box could be too small for
paths with more than one subpath, and when the stencil method was used,
parts of the path would not be filled.
Task-number: 245803
Reviewed-by: Samuel
Diffstat (limited to 'src')
-rw-r--r-- | src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp b/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp index 8f9a6a9..425b877 100644 --- a/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp +++ b/src/opengl/gl2paintengineex/qgl2pexvertexarray.cpp @@ -98,7 +98,7 @@ void QGL2PEXVertexArray::addPath(const QVectorPath &path, GLfloat curveInverseSc case QPainterPath::MoveToElement: // qDebug("element[%d] is a MoveToElement", i); vertexArrayStops.append(vertexArray.size()); - vertexArray.add(points[i]); // Add the moveTo as a new vertex + lineToArray(points[i].x(), points[i].y()); // Add the moveTo as a new vertex break; case QPainterPath::LineToElement: // qDebug("element[%d] is a LineToElement", i); |