fix a warning from QPixmap::scaled, "pixmap is a null pixmap"