summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-12-14 15:46:44 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-12-15 12:38:21 (GMT)
commit3e9d2ca2c31626d5c9a4b16372928637c9d0610f (patch)
tree5369a8c3f29b558a68345fef7a29f8bdefe9ffe7 /src/gui/painting
parentc9a1070f71f18b051f574854c0cfd61f658d9b50 (diff)
downloadQt-3e9d2ca2c31626d5c9a4b16372928637c9d0610f.zip
Qt-3e9d2ca2c31626d5c9a4b16372928637c9d0610f.tar.gz
Qt-3e9d2ca2c31626d5c9a4b16372928637c9d0610f.tar.bz2
Implemented caching of concave vector paths in the GL2 engine.
Reviewed-by: Gunnar
Diffstat (limited to 'src/gui/painting')
-rw-r--r--src/gui/painting/qpainterpath.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp
index 8133793..c760882 100644
--- a/src/gui/painting/qpainterpath.cpp
+++ b/src/gui/painting/qpainterpath.cpp
@@ -1257,6 +1257,8 @@ Qt::FillRule QPainterPath::fillRule() const
void QPainterPath::setFillRule(Qt::FillRule fillRule)
{
ensureData();
+ if (d_func()->fillRule == fillRule)
+ return;
detach();
d_func()->fillRule = fillRule;