make sure we have an m_under object before using it

svn path=/trunk/KDE/kdelibs/; revision=1069733
This commit is contained in:
Aaron J. Seigo 2010-01-04 09:23:55 +00:00
parent 7a46df7066
commit f3063c4fa9

View File

@ -81,7 +81,7 @@ void PulseAnimation::updateState(QAbstractAnimation::State newState, QAbstractAn
} }
if (oldState == Stopped && newState == Running) { if (oldState == Stopped && newState == Running) {
if (m_under->target() != targetWidget() || m_under->size() != targetWidget()->size()) { if (!m_under || m_under->target() != targetWidget() || m_under->size() != targetWidget()->size()) {
setCopy(); setCopy();
} }