summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgunnar <gunnar@trolltech.com>2009-10-09 17:39:17 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-10-13 11:17:27 (GMT)
commit3ca0529f18849e44de01dac620905ecdb28c3ce8 (patch)
tree9b9815f18894b65e7a2166123f7293ef9af12e0a /src
parentc4bb0bd645e25bb68e9ac29f0dcc53566b148be9 (diff)
downloadQt-3ca0529f18849e44de01dac620905ecdb28c3ce8.zip
Qt-3ca0529f18849e44de01dac620905ecdb28c3ce8.tar.gz
Qt-3ca0529f18849e44de01dac620905ecdb28c3ce8.tar.bz2
Make QStrokerOps, QStroker and QDashStroker properly modular
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qstroker_p.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/painting/qstroker_p.h b/src/gui/painting/qstroker_p.h
index b78288c..a10ebd9 100644
--- a/src/gui/painting/qstroker_p.h
+++ b/src/gui/painting/qstroker_p.h
@@ -366,16 +366,16 @@ inline void QStroker::emitCubicTo(qfixed c1x, qfixed c1y,
*/
inline void QDashStroker::begin(void *data)
{
- Q_ASSERT(m_stroker);
- m_stroker->begin(data);
+ if (m_stroker)
+ m_stroker->begin(data);
QStrokerOps::begin(data);
}
inline void QDashStroker::end()
{
- Q_ASSERT(m_stroker);
QStrokerOps::end();
- m_stroker->end();
+ if (m_stroker)
+ m_stroker->end();
}
QT_END_NAMESPACE