QTfrontend/ui/widget/drawmapwidget.cpp
changeset 13245 950186baa764
parent 13214 f5d36be88c61
child 14841 b9437746bffb
equal deleted inserted replaced
13242:0171519e2f13 13245:950186baa764
    61 
    61 
    62 void DrawMapWidget::resizeEvent(QResizeEvent * event)
    62 void DrawMapWidget::resizeEvent(QResizeEvent * event)
    63 {
    63 {
    64     Q_UNUSED(event);
    64     Q_UNUSED(event);
    65 
    65 
       
    66 	if(!m_scene)
       
    67 		return;
       
    68 		
    66     int height = this->height();
    69     int height = this->height();
    67     int width = this->width();
    70     int width = this->width();
    68 
    71 
    69     if ((m_scene->height() > 0) && (m_scene->width() > 0) && (height > 0))
    72     if ((m_scene->height() > 0) && (m_scene->width() > 0) && (height > 0))
    70     {
    73     {