--- 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();
}