summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-06-16 10:03:02 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2010-06-16 10:20:58 (GMT)
commit64e60dab167afc68cfb94a8eb0b7469eea9a4291 (patch)
tree01b2fba528401eefd335bfe8ff0f8c8c454fabca /src/gui
parent28e23016eca537beae2da833603f3063b3bc5bcd (diff)
downloadQt-64e60dab167afc68cfb94a8eb0b7469eea9a4291.zip
Qt-64e60dab167afc68cfb94a8eb0b7469eea9a4291.tar.gz
Qt-64e60dab167afc68cfb94a8eb0b7469eea9a4291.tar.bz2
Fixed full-rule on clipped painter paths.
The fill-rule of the original path was not copied into the clipped path. Reviewed-by: Gunnar
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qoutlinemapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qoutlinemapper.cpp b/src/gui/painting/qoutlinemapper.cpp
index 1b01960..962f34c 100644
--- a/src/gui/painting/qoutlinemapper.cpp
+++ b/src/gui/painting/qoutlinemapper.cpp
@@ -354,6 +354,10 @@ void QOutlineMapper::clipElements(const QPointF *elements,
// this part of code hardly every used, it shouldn't matter.
QPainterPath path;
+
+ if (!(m_outline.flags & QT_FT_OUTLINE_EVEN_ODD_FILL))
+ path.setFillRule(Qt::WindingFill);
+
if (types) {
for (int i=0; i<element_count; ++i) {
switch (types[i]) {