radioapp/radiowidgets/src/radiostripbase.cpp
changeset 14 63aabac4416d
parent 13 46974bebc798
child 16 f54ebcfc1b80
--- a/radioapp/radiowidgets/src/radiostripbase.cpp	Fri Mar 19 09:29:04 2010 +0200
+++ b/radioapp/radiowidgets/src/radiostripbase.cpp	Fri Apr 16 14:58:55 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 // System includes
-#include <qgraphicssceneevent>
+#include <QGraphicsSceneEvent>
 
 // User includes
 #include "radiostripbase.h"
@@ -218,8 +218,10 @@
  */
 void RadioStripBase::resizeEvent( QGraphicsSceneResizeEvent* event )
 {
-    QPixmap background = mBackgroundImage->pixmap().scaledToWidth( event->newSize().width() );
-    mBackgroundImage->setPixmap( background );
+    if ( mBackgroundImage ) {
+        QPixmap background = mBackgroundImage->pixmap().scaledToWidth( event->newSize().width() );
+        mBackgroundImage->setPixmap( background );
+    }
     populateAndLayout();
 }