diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2008-07-14 11:00:16 +0000 |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2008-07-14 11:00:16 +0000 |
commit | 3e06f2607a3556d7a872c6bc6324e11addee6748 (patch) | |
tree | b1b18d66c41a75258895f9857cb5fc63d91404dc /underwater | |
parent | ba3d691957867f24eebc51fa1f4ba9a5df0ef778 (diff) |
Prospective fix for Mac OS X
Diffstat (limited to 'underwater')
-rw-r--r-- | underwater/underwater.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/underwater/underwater.cpp b/underwater/underwater.cpp index fda9dcb..9416814 100644 --- a/underwater/underwater.cpp +++ b/underwater/underwater.cpp @@ -207,7 +207,9 @@ void UnderwaterDemo::paintEvent(QPaintEvent*) int amp = m_amplitudeSlider->value(); qreal tick = m_timeLine->currentValue(); if (!m_image.isNull()) - applyUnderwater(&m_image, &m_modifiedImage1, &m_modifiedImage2, amp, tick); + if (!m_modifiedImage1.isNull()) + if (!m_modifiedImage2.isNull()) + applyUnderwater(&m_image, &m_modifiedImage1, &m_modifiedImage2, amp, tick); painter.drawImage(0, 0, m_modifiedImage2); } } |